PsiElement (@NotNull PsiDirectory directory, @Nullable PsiElement anchor) { if (isPackage(directory, anchor)) { final PsiElement init = turnDirIntoInit(directory); if (init != null) { return init; } return directory; } return null; }