boolean (PsiElement source, PsiElement target) { if (source instanceof PsiFile && source.getParent() == target) { final VirtualFile virtualFile = ((PsiFile)source).getVirtualFile(); if (virtualFile != null && virtualFile.getFileType() instanceof GuiFormFileType) { return true; } } return super.isMoveRedundant(source, target); }