void (@NotNull UMethod sourceNode, @NotNull PsiJvmMember targetElement) { PsiElement sourcePsi = sourceNode.getSourcePsi(); PsiElement nameIdentifier = UElementKt.getSourcePsiElement(sourceNode.getUastAnchor()); if (sourcePsi != null && nameIdentifier != null && targetElement.hasModifier(JvmModifier.PACKAGE_LOCAL)) { Module targetModule = ModuleUtilCore.findModuleForPsiElement(targetElement); Module sourceModule = ModuleUtilCore.findModuleForPsiElement(sourcePsi); if (isPackageLocalAccessSuspicious(sourceModule, targetModule)) { List<IntentionAction> fixes = JvmElementActionFactories.createModifierActions(targetElement, MemberRequestsKt.modifierRequest(JvmModifier.PUBLIC, true)); String elementDescription = StringUtil.removeHtmlTags(StringUtil.capitalize(RefactoringUIUtil.getDescription(targetElement, false))); final String classDescription = StringUtil.removeHtmlTags(RefactoringUIUtil.getDescription(targetElement.getParent(), false)); LocalQuickFix[] quickFixes = IntentionWrapper.wrapToQuickFixes(fixes.toArray(IntentionAction.EMPTY_ARRAY), targetElement.getContainingFile()); String problem = InspectionGadgetsBundle .message("inspection.suspicious.package.private.access.problem", elementDescription, classDescription, targetModule.getName()); myProblemsHolder.registerProblem(nameIdentifier, problem, ArrayUtil.append(quickFixes, new MarkModulesAsLoadedTogetherFix(sourceModule.getName(), targetModule.getName()))); } } }