Boolean (final @NotNull PsiElement element, final @NotNull ProximityLocation location) { if (location.getPosition() == null) { return Boolean.TRUE; } final PsiDirectory placeDirectory = PLACE_DIRECTORY.getValue(location); return placeDirectory != null && placeDirectory.equals(getParentDirectory(element)); }