String classForReplacement = fqn;
synchronized (target.getContainingFile()) {
final PsiElement file     = target.getContainingFile();
boolean isImportedAlready = false;
PsiElement importMarker   = null;
<BUG>for (PhpUseList use : PsiTreeUtil.findChildrenOfType(file, PhpUseList.class)) {
importMarker = use;</BUG>
for (PsiElement used : use.getChildren()){
if (!(used instanceof PhpUse)) {
continue;

String classForReplacement = fqn;
synchronized (target.getContainingFile()) {
final PsiElement file     = target.getContainingFile();
boolean isImportedAlready = false;
PsiElement importMarker   = null;
for (PhpUseList use : PsiTreeUtil.findChildrenOfType(file, PhpUseList.class)) {
if (use.getParent() instanceof Function) {
continue;
}
importMarker = use;
for (PsiElement used : use.getChildren()){
if (!(used instanceof PhpUse)) {
continue;
