boolean (@NotNull UCallExpression expression) { UastCallKind expressionKind = expression.getKind(); if (expressionKind == UastCallKind.METHOD_CALL) { if (isJBUIFactoryMethodCall(expression) && canBeSimplified(expression)) { PsiElement sourcePsi = expression.getSourcePsi(); if (sourcePsi != null) { holder.registerProblem(sourcePsi, getCanBeSimplifiedMessage(), createSimplifyFix()); } } } else if (expressionKind == UastCallKind.CONSTRUCTOR_CALL && isNonDpiAwareClassConstructor(expression) && !isAllowedConstructorCall(expression) && DevKitInspectionUtil.isClassAvailable(holder, JB_UI_CLASS_NAME)) { PsiElement sourcePsi = expression.getSourcePsi(); if (sourcePsi != null) { holder.registerProblem(sourcePsi, getNonDpiAwareObjectCreatedMessage(), createConvertToDpiAwareMethodCall()); } } return super.visitCallExpression(expression); }