boolean (TreePath @NotNull [] sources, @NotNull TreePath target) { PsiElement psiElement = getPsiElement(target); return !(psiElement instanceof PsiDirectoryContainer) && !(psiElement instanceof PsiDirectory); }