ErrorWithFixes (@NotNull PsiElement target, @NotNull PsiElement place, @Nullable String symbolName, @Nullable String containerName) { ErrorWithFixes error = null; for (JavaModuleSystem moduleSystem : JavaModuleSystem.EP_NAME.getExtensionList()) { if (moduleSystem instanceof JavaModuleSystemEx) { error = checkAccess((JavaModuleSystemEx)moduleSystem, target, place); } else if (!isAccessible(moduleSystem, target, place)) { String message = JavaErrorBundle.message("visibility.module.access.problem", symbolName, containerName, moduleSystem.getName()); error = new ErrorWithFixes(message); } if (error != null) { return error; } } return null; }