boolean (@NotNull PsiFileSystemItem anchor, @Nullable PsiElement location) { return anchor instanceof PsiFile ? isPackage((PsiFile)anchor) : anchor instanceof PsiDirectory && isPackage((PsiDirectory)anchor, location); }