boolean (PsiElement source, PsiElement target) { if (source instanceof PropertiesFile && target instanceof PsiDirectory) { return source.getParent() == target; } return super.isMoveRedundant(source, target); }