void (@NotNull final String inspectionId, @NotNull final IComponent component, @Nullable IProperty prop, @NotNull String errorMessage, EditorQuickFixProvider @NotNull ... editorQuickFixProviders) { if (myResults == null) { myResults = new ArrayList<>(); } List<QuickFix> quickFixes = new ArrayList<>(); for (EditorQuickFixProvider provider : editorQuickFixProviders) { if (provider != null) { quickFixes.add(provider.createQuickFix(myEditor, myComponent)); } } final ErrorInfo errorInfo = new ErrorInfo(myComponent, prop == null ? null : prop.getName(), errorMessage, myProfile.getErrorLevel(HighlightDisplayKey.find(inspectionId), myFormPsiFile), quickFixes.toArray(QuickFix.EMPTY_ARRAY)); errorInfo.setInspectionId(inspectionId); myResults.add(errorInfo); }