void (@NotNull UElement sourceNode, PsiJvmMember targetElement, final String accessType) { PsiElement sourcePsi = sourceNode.getSourcePsi(); if (sourcePsi != null) { Module targetModule = ModuleUtilCore.findModuleForPsiElement(targetElement); Module sourceModule = ModuleUtilCore.findModuleForPsiElement(sourcePsi); if (isPackageLocalAccessSuspicious(sourceModule, targetModule) && PsiTreeUtil.getParentOfType(sourcePsi, PsiComment.class) == null) { List<IntentionAction> fixes = JvmElementActionFactories.createModifierActions(targetElement, MemberRequestsKt.modifierRequest(JvmModifier.PUBLIC, true)); String elementDescription = StringUtil.removeHtmlTags(StringUtil.capitalize(RefactoringUIUtil.getDescription(targetElement, true))); LocalQuickFix[] quickFixes = IntentionWrapper.wrapToQuickFixes(fixes.toArray(IntentionAction.EMPTY_ARRAY), targetElement.getContainingFile()); myProblemsHolder.registerProblem(sourcePsi, InspectionGadgetsBundle .message("inspection.suspicious.package.private.access.description", elementDescription, accessType, targetModule.getName()), ArrayUtil.append(quickFixes, new MarkModulesAsLoadedTogetherFix(sourceModule.getName(), targetModule.getName()))); } } }