boolean (boolean entryPointEnabled, @NotNull RefJavaElement refJavaElement) { if (refJavaElement instanceof RefClass refClass) { RefModule refModule = refClass.getModule(); if (refModule != null) { RefJavaModule refJavaModule = RefJavaModule.JAVA_MODULE.get(refModule); if (refJavaModule != null) { return isServiceClass(refClass, refJavaModule) || !entryPointEnabled && isInExportedPackage(refClass, refJavaModule); } } } return false; }