method_name
stringlengths
2
80
method_block
stringlengths
8
37k
method_name_pointers
sequencelengths
2
2
method_signature
stringlengths
7
4.42k
length
int64
8
37k
class_signature
stringlengths
9
10.2k
methods_in_class
sequencelengths
1
1.51k
file_path
stringlengths
54
188
__index_level_0__
int64
0
471k
getClasspathType
@MagicConstant(valuesFromClass = JavaParameters.class) @SuppressWarnings("unused") public static int getClasspathType(@NotNull RunConfigurationModule configurationModule, @NotNull String mainClassName, boolean classMustHaveSource) throws CantRunException { return getClasspathType(configurationModule, mainClassName, classMustHaveSource, false); }
[ 105, 121 ]
@MagicConstant(valuesFromClass = JavaParameters.class) @SuppressWarnings("unused") public static int getClasspathType(@NotNull RunConfigurationModule configurationModule, @NotNull String mainClassName, boolean classMustHaveSource)
431
public final class JavaParametersUtil
[ "public static void configureConfiguration(SimpleJavaParameters parameters, CommonJavaRunConfigurationParameters configuration)", "@MagicConstant(valuesFromClass = JavaParameters.class)\n @SuppressWarnings(\"unused\")\n public static int getClasspathType(@NotNull RunConfigurationModule configurationModule,\n @NotNull String mainClassName,\n boolean classMustHaveSource)", "@MagicConstant(valuesFromClass = JavaParameters.class)\n public static int getClasspathType(@NotNull RunConfigurationModule configurationModule,\n @NotNull String mainClassName,\n boolean classMustHaveSource,\n boolean includeProvidedDependencies)", "@Nullable(\"null if class not found\")\n public static Boolean isClassInProductionSources(@NotNull String mainClassName, @NotNull Module module)", "public static void configureModule(final RunConfigurationModule runConfigurationModule,\n final JavaParameters parameters,\n @MagicConstant(valuesFromClass = JavaParameters.class) final int classPathType,\n @Nullable String jreHome)", "public static void configureModule(Module module,\n JavaParameters parameters,\n @MagicConstant(valuesFromClass = JavaParameters.class) int classPathType,\n @Nullable String jreHome)", "public static void configureProject(Project project,\n final JavaParameters parameters,\n @MagicConstant(valuesFromClass = JavaParameters.class) final int classPathType,\n @Nullable String jreHome)", "public static Sdk createModuleJdk(final Module module, boolean productionOnly, @Nullable String jreHome)", "public static Sdk createProjectJdk(@NotNull final Project project, @Nullable String jreHome)", "private static Sdk createProjectJdk(@NotNull final Project project)", "public static @Nullable JavaVersion getJavaVersion(@NotNull String jreHome)", "private static Sdk createAlternativeJdk(@NotNull Project project, @NotNull String jreHome)", "public static void checkAlternativeJRE(@NotNull CommonJavaRunConfigurationParameters configuration)", "public static void checkAlternativeJRE(@Nullable String jrePath)", "@NotNull\n public static Predicate<Field> getFilter(@NotNull CommonJavaRunConfigurationParameters parameters)", "public static void putDependenciesOnModulePath(JavaParameters javaParameters,\n PsiJavaModule module,\n boolean includeTests)", "private static void collectExplicitlyAddedModules(Project project,\n JavaParameters javaParameters,\n Set<PsiJavaModule> explicitModules)", "private static void putProvidersOnModulePath(Project project, Set<PsiJavaModule> initialModules, Set<PsiJavaModule> forModulePath)", "private static void putOnModulePath(PathsList modulePath, PathsList classPath, VirtualFile virtualFile)", "private static VirtualFile getClasspathEntry(PsiJavaModule javaModule, ProjectFileIndex fileIndex, JarFileSystem jarFileSystem)", "public static void applyModifications(JavaParameters parameters, List<ModuleBasedConfigurationOptions.ClasspathModification> modifications)" ]
intellij-community/java/execution/impl/src/com/intellij/execution/util/JavaParametersUtil.java
418,709
started
void started();
[ 5, 12 ]
void started()
15
public final class PyPackageManagerUI
[ "void started()", "void finished(List<ExecutionException> exceptions)", "public void installManagement()", "public void install(final @Nullable List<PyRequirement> requirements, final @NotNull List<String> extraArgs)", "public void uninstall(final @NotNull List<PyPackage> packages)", "private boolean checkDependents(@NotNull List<PyPackage> packages)", "private static Map<String, Set<PyPackage>> collectDependents(final @NotNull List<PyPackage> packages,\n Sdk sdk)", "@Override\n public void run(@NotNull ProgressIndicator indicator)", "protected abstract @NotNull List<ExecutionException> runTask(@NotNull ProgressIndicator indicator)", "protected abstract @NotNull @NlsContexts.NotificationTitle String getSuccessTitle()", "protected abstract @NotNull @NlsContexts.NotificationContent String getSuccessDescription()", "protected abstract @NotNull @NlsContexts.NotificationTitle String getFailureTitle()", "protected void taskStarted(@NotNull ProgressIndicator indicator)", "protected void taskFinished(final @NotNull List<ExecutionException> exceptions)", "@SuppressWarnings(\"HardCodedStringLiteral\")\n private static @NotNull @Nls String wrapIntoLink(@NotNull @Nls String prefix,\n @NotNull @PropertyKey(resourceBundle = PyBundle.BUNDLE) String key)", "@Override\n protected @NotNull List<ExecutionException> runTask(@NotNull ProgressIndicator indicator)", "@Override\n protected @NotNull String getSuccessTitle()", "@Override\n protected @NotNull String getSuccessDescription()", "@Override\n protected @NotNull String getFailureTitle()", "@Override\n protected @NotNull List<ExecutionException> runTask(@NotNull ProgressIndicator indicator)", "@Override\n protected @NotNull String getSuccessDescription()", "@Override\n protected @NotNull List<ExecutionException> runTask(@NotNull ProgressIndicator indicator)", "@Override\n protected @NotNull String getSuccessTitle()", "@Override\n protected @NotNull String getSuccessDescription()", "@Override\n protected @NotNull String getFailureTitle()" ]
intellij-community/python/src/com/jetbrains/python/packaging/PyPackageManagerUI.java
172,889
collapseIfPossible
private static void collapseIfPossible(@NotNull final Editor editor, @NotNull ProjectSystemId externalSystemId, @NotNull Project project) { ExternalSystemManager<?,?,?,?,?> manager = ExternalSystemApiUtil.getManager(externalSystemId); assert manager != null; final AbstractExternalSystemLocalSettings<?> settings = manager.getLocalSettingsProvider().fun(project); final ExternalSystemUiAware uiAware = ExternalSystemUiUtil.getUiAware(externalSystemId); String rawText = editor.getDocument().getText(); for (Map.Entry<ExternalProjectPojo, Collection<ExternalProjectPojo>> entry : settings.getAvailableProjects().entrySet()) { if (entry.getKey().getPath().equals(rawText)) { collapse(editor, uiAware.getProjectRepresentationName(project, entry.getKey().getPath(), null)); return; } for (ExternalProjectPojo pojo : entry.getValue()) { if (pojo.getPath().equals(rawText)) { collapse(editor, uiAware.getProjectRepresentationName(project, pojo.getPath(), entry.getKey().getPath())); return; } } } }
[ 20, 38 ]
private static void collapseIfPossible(@NotNull final Editor editor, @NotNull ProjectSystemId externalSystemId, @NotNull Project project)
1,183
public class ExternalProjectPathField extends ComponentWithBrowseButton<ExternalProjectPathField.MyPathAndProjectButtonPanel> implements TextAccessor
[ "@NotNull\n public static MyPathAndProjectButtonPanel createPanel(@NotNull final Project project, @NotNull final ProjectSystemId externalSystemId)", "@NotNull\n private static Tree buildRegisteredProjectsTree(@NotNull Project project, @NotNull ProjectSystemId externalSystemId)", "@NotNull\n private static EditorTextField createTextField(@NotNull final Project project, @NotNull final ProjectSystemId externalSystemId)", "@Override\n public void setText(final String text)", "private static void collapseIfPossible(@NotNull final Editor editor,\n @NotNull ProjectSystemId externalSystemId,\n @NotNull Project project)", "public static void collapse(@NotNull final Editor editor, @NotNull final String placeholder)", "@Override\n public String getText()", "private void setPathField(@NotNull EditorTextField pathField)", "@Override\n public void actionPerformed(ActionEvent e)", "@NotNull\n public EditorTextField getTextField()" ]
intellij-community/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/ui/ExternalProjectPathField.java
238,555
getResourceAsBytes
public static byte @Nullable [] getResourceAsBytes(@NotNull String path, @NotNull ClassLoader classLoader, boolean checkParents) throws IOException { if (classLoader instanceof UrlClassLoader) { return ((UrlClassLoader)classLoader).getResourceAsBytes(path, checkParents); } InputStream stream = classLoader.getResourceAsStream(path); if (stream == null) { return null; } try (stream) { return stream.readAllBytes(); } }
[ 32, 50 ]
public static byte @Nullable [] getResourceAsBytes(@NotNull String path, @NotNull ClassLoader classLoader, boolean checkParents)
575
public final class ResourceUtil
[ "public static byte @Nullable [] getResourceAsBytes(@NotNull String path, @NotNull ClassLoader classLoader)", "public static byte @Nullable [] getResourceAsBytes(@NotNull String path,\n @NotNull ClassLoader classLoader,\n boolean checkParents)", "public static byte @Nullable [] getResourceAsBytesSafely(@NotNull String path, @NotNull ClassLoader classLoader)", "@Deprecated(forRemoval = true)\n public static URL getResource(@NotNull Class<?> loaderClass, @NonNls @NotNull String basePath, @NonNls @NotNull String fileName)", "public static InputStream getResourceAsStream(@NotNull ClassLoader loader, @NonNls @NotNull String basePath, @NonNls @NotNull String fileName)", "public static URL getResource(@NotNull ClassLoader loader, @NonNls @NotNull String basePath, @NonNls @NotNull String fileName)", "private static @NotNull List<String> calculateBundleNames(@NotNull String baseName, @NotNull Locale locale)", "@Deprecated(forRemoval = true)\n public static @NotNull String loadText(@NotNull URL url)", "public static @NotNull String loadText(@NotNull InputStream in)" ]
intellij-community/platform/util-ex/src/com/intellij/util/ResourceUtil.java
265,483
fromCollect
@Nullable private static PrepopulatedCollectionModel fromCollect(PsiMethodCallExpression call, String typeName, CallMatcher collector) { if (STREAM_COLLECT.test(call) && collector.matches(call.getArgumentList().getExpressions()[0])) { PsiMethodCallExpression qualifier = MethodCallUtils.getQualifierMethodCall(call); if (STREAM_OF.matches(qualifier)) { return new PrepopulatedCollectionModel(Arrays.asList(qualifier.getArgumentList().getExpressions()), Collections.emptyList(), typeName); } } return null; }
[ 57, 68 ]
@Nullable private static PrepopulatedCollectionModel fromCollect(PsiMethodCallExpression call, String typeName, CallMatcher collector)
616
public final class Java9CollectionFactoryInspection extends AbstractBaseJavaLocalInspectionTool
[ "@Override\n public @NotNull OptPane getOptionsPane()", "@Override\n public @NotNull Set<@NotNull JavaFeature> requiredFeatures()", "@Override\n public @NotNull PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder, boolean isOnTheFly)", "boolean isValid(boolean suggestMapOfEntries)", "private boolean hasTooManyMapEntries()", "private StreamEx<PsiExpression> keyExpressions()", "public static PrepopulatedCollectionModel fromList(PsiExpression listDefinition)", "public static PrepopulatedCollectionModel fromSet(PsiExpression setDefinition)", "public static PrepopulatedCollectionModel fromMap(PsiExpression mapDefinition)", "@Nullable\n private static PrepopulatedCollectionModel fromCollect(PsiMethodCallExpression call, String typeName, CallMatcher collector)", "@Nullable\n private static PrepopulatedCollectionModel fromVariable(PsiReferenceExpression expression,\n String typeName, String collectionClass, CallMatcher addMethod)", "@Nullable\n private static PrepopulatedCollectionModel fromNewExpression(PsiNewExpression newExpression, String type, String className)", "@Nullable\n private static PrepopulatedCollectionModel fromCopyConstructor(PsiExpression[] args, String type)", "@Nullable\n private static PrepopulatedCollectionModel fromInitializer(PsiAnonymousClass anonymousClass, String type, CallMatcher addMethod)", "@NotNull\n @Override\n public String getName()", "@NotNull\n @Override\n public String getFamilyName()", "@Override\n protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)", "@NotNull\n private static String getTypeArguments(PsiType type, String typeName)" ]
intellij-community/java/java-impl-inspections/src/com/intellij/codeInspection/java19api/Java9CollectionFactoryInspection.java
436,061
registerContributor
public void registerContributor(@NotNull RemoteServersServiceViewContributor contributor) { if (myContributors.put(contributor, Boolean.TRUE) == null) { AppUIExecutor.onUiThread().expireWith(myProject).submit(() -> { for (RemoteServer<?> server : RemoteServersManager.getInstance().getServers()) { if (contributor.accept(server)) { myServerToContent.put(server, createMessagePanel()); } } }); } }
[ 12, 31 ]
public void registerContributor(@NotNull RemoteServersServiceViewContributor contributor)
466
@Service(Service.Level.PROJECT) public final class RemoteServersDeploymentManager
[ "public static RemoteServersDeploymentManager getInstance(Project project)", "private void initListeners()", "public void registerContributor(@NotNull RemoteServersServiceViewContributor contributor)", "public @NotNull ServerTreeNodeExpander getNodeExpander()", "public @NotNull ServersTreeNodeSelector getNodeSelector()", "public JComponent getServerContent(RemoteServer<?> server)", "private static void updateServerContent(@Nullable MessagePanel messagePanel, @Nullable ServerConnection<?> connection)", "@ApiStatus.Internal\n public @Nullable RemoteServersServiceViewContributor findContributor(@NotNull RemoteServer<?> server)", "private static void pollDeployments(@NotNull ServerConnection<?> connection)", "public static @Nullable ServersTreeNodeSelector getNodeSelector(@NotNull AnActionEvent e)", "public static MessagePanel createMessagePanel()", "void setEmptyText(@NotNull String text)", "@NotNull\n JComponent getComponent()", "@Override\n public void select(@NotNull ServerConnection<?> connection)", "@Override\n public void select(@NotNull ServerConnection<?> connection, @NotNull String deploymentName)", "@Override\n public void select(@NotNull ServerConnection<?> connection, @NotNull String deploymentName, @NotNull String logName)", "@Override\n public void expand(@NotNull ServerConnection<?> connection, @NotNull String deploymentName)", "public AbstractTreeNode<?> findDeployment(RemoteServersServiceViewContributor contributor,\n ServerConnection<?> connection,\n String deploymentName)" ]
intellij-community/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/ui/RemoteServersDeploymentManager.java
219,508
loadFileStatus
private static boolean loadFileStatus(String path, Memory buffer) { return (SystemInfo.isLinux ? LinuxLibC.__xstat64(STAT_VER, path, buffer) : UnixLibC.stat(path, buffer)) == 0; }
[ 23, 37 ]
private static boolean loadFileStatus(String path, Memory buffer)
189
public final class FileSystemUtil
[ "@Nullable FileAttributes getAttributes(@NotNull String path)", "@Nullable String resolveSymLink(@NotNull String path)", "static @NotNull Mediator computeMediator()", "private static Mediator ensureSane(Mediator mediator)", "@ApiStatus.Obsolete\n public static @Nullable FileAttributes getAttributes(@NotNull String path)", "@ApiStatus.Obsolete\n public static @Nullable FileAttributes getAttributes(@NotNull File file)", "@ApiStatus.Obsolete\n public static long lastModified(@NotNull File file)", "@ApiStatus.Obsolete\n public static boolean isSymLink(@NotNull String path)", "@ApiStatus.Obsolete\n public static boolean isSymLink(@NotNull File file)", "@ApiStatus.Obsolete\n public static @Nullable String resolveSymLink(@NotNull String path)", "@ApiStatus.Obsolete\n public static @Nullable String resolveSymLink(@NotNull File file)", "static native int getuid()", "static native int access(String path, int mode)", "static native int lstat(String path, Pointer stat)", "static native int stat(String path, Pointer stat)", "static native int __lxstat64(int ver, String path, Pointer stat)", "static native int __xstat64(int ver, String path, Pointer stat)", "@Override\n public FileAttributes getAttributes(@NotNull String path)", "@Override\n public String resolveSymLink(@NotNull String path)", "private static boolean loadFileStatus(String path, Memory buffer)", "private int getModeFlags(Memory buffer)", "@Override\n public FileAttributes getAttributes(@NotNull String pathStr)", "@Override\n public String resolveSymLink(@NotNull String path)", "@ApiStatus.Internal\n public static @NotNull FileAttributes.CaseSensitivity readParentCaseSensitivity(@NotNull File anyChild)", "static @NotNull FileAttributes.CaseSensitivity readParentCaseSensitivityByJavaIO(@NotNull File anyChild)", "static @NotNull FileAttributes.CaseSensitivity readCaseSensitivityByNativeAPI(@NotNull File anyChild)", "private static String toggleCase(String name)", "@ApiStatus.Internal\n public static boolean isCaseToggleable(@NotNull String name)", "private static @Nullable String findCaseToggleableChild(File dir)", "private static FileAttributes.CaseSensitivity getNtfsCaseSensitivity(String path)", "int NtQueryInformationFile(\n HANDLE FileHandle,\n IO_STATUS_BLOCK_P ioStatusBlock,\n Structure fileInformation,\n long length,\n int fileInformationClass)", "private static FileAttributes.CaseSensitivity getMacOsCaseSensitivity(String path)", "CFTypeRef CFURLCreateFromFileSystemRepresentation(CFAllocatorRef allocator, byte[] buffer, long bufLen, boolean isDirectory)", "boolean CFURLCopyResourcePropertyForKey(CFTypeRef url, CFStringRef key, PointerByReference propertyValueTypeRefPtr, PointerByReference error)", "CFStringRef CFErrorGetDomain(Pointer errorRef)", "CFIndex CFErrorGetCode(Pointer errorRef)", "private static FileAttributes.CaseSensitivity getLinuxCaseSensitivity(String path)", "int statfs(String path, Memory buf)", "int fgetflags(String path, LongByReference flags)" ]
intellij-community/platform/util/src/com/intellij/openapi/util/io/FileSystemUtil.java
211,059
buildErrorString
@Override @NotNull protected String buildErrorString(Object... infos) { return InspectionGadgetsBundle.message( "design.for.extension.problem.descriptor"); }
[ 40, 56 ]
@Override @NotNull protected String buildErrorString(Object... infos)
173
public final class DesignForExtensionInspection extends BaseInspection
[ "@Override\n @NotNull\n protected String buildErrorString(Object... infos)", "@Nullable\n @Override\n protected LocalQuickFix buildFix(Object... infos)", "@Override\n public boolean shouldInspect(@NotNull PsiFile file)", "@Override\n public BaseInspectionVisitor buildVisitor()", "@Override\n public void visitMethod(@NotNull PsiMethod method)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/security/DesignForExtensionInspection.java
460,589
getAllPairsForMatcher
private static Set<TextMateBracePair> getAllPairsForMatcher(@Nullable TextMateScope selector) { if (selector == null) { return Constants.DEFAULT_HIGHLIGHTING_BRACE_PAIRS; } Set<TextMateBracePair> result = new HashSet<>(); List<Preferences> preferencesForSelector = TextMateService.getInstance().getPreferenceRegistry().getPreferences(selector); for (Preferences preferences : preferencesForSelector) { final Set<TextMateBracePair> highlightingPairs = preferences.getHighlightingPairs(); if (highlightingPairs != null) { if (highlightingPairs.isEmpty()) { // smart typing pairs can be defined in preferences but can be empty (in order to disable smart typing completely) return Collections.emptySet(); } result.addAll(highlightingPairs); } } return result; }
[ 38, 59 ]
private static Set<TextMateBracePair> getAllPairsForMatcher(@Nullable TextMateScope selector)
855
public final class TextMateEditorUtils
[ "@Nullable\n public static TextMateScope getCurrentScopeSelector(@NotNull EditorEx editor)", "@Nullable\n private static TextMateScope getCurrentScopeFromEditor(@NotNull EditorEx editor)", "@Nullable\n public static TextMateBracePair findRightHighlightingPair(int leftBraceStartOffset,\n @NotNull CharSequence fileText,\n @Nullable TextMateScope currentScope)", "@Nullable\n public static TextMateBracePair findLeftHighlightingPair(int rightBraceEndOffset,\n @NotNull CharSequence fileText,\n @Nullable TextMateScope currentSelector)", "private static Set<TextMateBracePair> getAllPairsForMatcher(@Nullable TextMateScope selector)", "public static Set<TextMateAutoClosingPair> getSmartTypingPairs(@Nullable TextMateScope currentScope)" ]
intellij-community/plugins/textmate/src/org/jetbrains/plugins/textmate/editor/TextMateEditorUtils.java
55,398
focusGained
@Override public void focusGained(@NotNull FocusEvent e) { Component from = e.getOppositeComponent(); if (!e.isTemporary() && from != null && !myComboBox.isPopupVisible() && isUnder(from, myParent)) { myComboBox.setPopupVisible(true); } }
[ 26, 37 ]
@Override public void focusGained(@NotNull FocusEvent e)
272
public class PsiViewerDialog extends DialogWrapper implements DataProvider
[ "@Override\n public int compare(@NotNull String o1, @NotNull String o2)", "@Override\n public void updatePsiTree(@NotNull PsiElement toSelect, @Nullable TextRange selectRangeInEditor)", "private static @Nullable PsiFile getOriginalPsiFile(@NotNull Project project, @Nullable Editor selectedEditor)", "private @NotNull JBTabs createTabPanel(@NotNull Project project)", "@Override\n protected void init()", "private static @NotNull @NlsSafe String getElementDescription(Object element)", "public static void initTree(JTree tree)", "@Override\n protected @NotNull String getDimensionServiceKey()", "@Override\n protected String getHelpId()", "@Override\n public JComponent getPreferredFocusedComponent()", "private void registerCustomKeyboardActions()", "private void registerKeyboardAction(ActionListener actionListener, KeyStroke keyStroke)", "private void focusEditor()", "private void focusTree()", "private void focusRefs()", "private void initMnemonics()", "private @Nullable PsiElement getPsiElement()", "private static @Nullable PsiElement getPsiElement(DefaultMutableTreeNode node)", "private void updateDialectsCombo(@Nullable String lastUsed)", "private void updateExtensionsCombo()", "private static List<String> getAllExtensions(LanguageFileType fileType)", "@Override\n protected JComponent createCenterPanel()", "private @Nullable Object getSource()", "@Override\n protected Action @NotNull [] createActions()", "@Override\n protected void doOKAction()", "private void doUpdatePsi()", "private void queueUpdatePsi()", "private PsiElement parseText(@NotNull String text)", "private void setOriginalFiles(@Nullable PsiElement root)", "@Override\n public Object getData(@NotNull @NonNls String dataId)", "private @Nullable PsiFile getSlowData(@NonNls String dataId, @NotNull Object selection)", "@Override\n public void valueChanged(@NotNull TreeSelectionEvent e)", "private void updateReferences(@NotNull PsiElement element)", "private @NotNull List<PsiReference> doUpdateReferences(@NotNull PsiElement element)", "private void clearSelection()", "@Override\n public void doCancelAction()", "@Override\n public void dispose()", "private @Nullable PsiFile getContainingFileForClass(@NotNull String fqn)", "private void navigate()", "@Override\n public void keyPressed(@NotNull KeyEvent e)", "@Override\n public void mouseClicked(@NotNull MouseEvent e)", "@Override\n public void valueChanged(@NotNull ListSelectionEvent e)", "public void clearSelection()", "@Override\n public void keyTyped(@NotNull KeyEvent e)", "@Override\n public void keyReleased(KeyEvent e)", "@Override\n public void mousePressed(@NotNull MouseEvent e)", "@Override\n public void mouseReleased(@NotNull MouseEvent e)", "@Override\n public void mouseEntered(@NotNull MouseEvent e)", "@Override\n public void mouseExited(@NotNull MouseEvent e)", "private void updateEditor()", "private void selectElement(@NotNull PsiElement element)", "private static @NotNull PsiElement getElementToChooseInPsiTree(@NotNull PsiElement element)", "@Override\n public void caretPositionChanged(@NotNull CaretEvent e)", "@Override\n public void selectionChanged(@NotNull SelectionEvent e)", "private static @Nullable PsiElement findCommonParent(PsiElement start, PsiElement end)", "private boolean available()", "@Override\n public void documentChanged(@NotNull DocumentEvent event)", "@Override\n public void focusGained(@NotNull FocusEvent e)", "private static boolean isUnder(@NotNull Component component, Component parent)", "private static <T> T computeSlowOperationsSafeInBgThread(@NotNull Project project,\n @NlsContexts.DialogTitle @NotNull String progressDialogTitle,\n @NotNull Callable<T> callable)" ]
intellij-community/plugins/dev/intellij.dev.psiViewer/src/PsiViewerDialog.java
27,280
isEmptyArray
public static boolean isEmptyArray(PsiVariable variable) { final PsiExpression initializer = variable.getInitializer(); if (initializer instanceof PsiArrayInitializerExpression arrayInitializerExpression) { final PsiExpression[] initializers = arrayInitializerExpression.getInitializers(); return initializers.length == 0; } return ConstructionUtils.isEmptyArrayInitializer(initializer); }
[ 22, 34 ]
public static boolean isEmptyArray(PsiVariable variable)
419
public final class CollectionUtils
[ "public static Set<String> getAllCollectionNames()", "@Contract(\"null -> false\")\n public static boolean isConcreteCollectionClass(@Nullable PsiType type)", "@Contract(\"null -> false\")\n public static boolean isConcreteCollectionClass(PsiClass aClass)", "public static boolean isCollectionClassOrInterface(@Nullable PsiType type)", "public static boolean isCollectionClassOrInterface(PsiClass aClass)", "private static boolean isCollectionClassOrInterface(\n PsiClass aClass, Set<? super PsiClass> visitedClasses)", "public static boolean isWeakCollectionClass(@Nullable PsiType type)", "public static boolean isConstantEmptyArray(@NotNull PsiField field)", "public static boolean isEmptyArray(PsiVariable variable)", "public static String getInterfaceForClass(String name)", "@Contract(\"null, _ -> false\")\n public static boolean isCollectionOrMapSize(@Nullable PsiExpression expression, @NotNull PsiExpression collection)", "private static @Nullable PsiExpression getBaseCollection(@NotNull PsiExpression derivedCollection)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/psiutils/CollectionUtils.java
461,470
doResolveProject
@NotNull private Collection<Maven3ExecutionResult> doResolveProject() { Set<File> files = myPomHashMap.keySet(); File file = !files.isEmpty() ? files.iterator().next() : null; files.forEach(f -> MavenServerStatsCollector.fileRead(f)); MavenExecutionRequest request = myEmbedder.createRequest(file, myActiveProfiles, myInactiveProfiles, userProperties); request.setUpdateSnapshots(myUpdateSnapshots); Collection<Maven3ExecutionResult> executionResults = new ArrayList<>(); List<ProjectBuildingResultInfo> buildingResultInfos = new ArrayList<>(); myEmbedder.executeWithMavenSession(request, () -> { try { MavenSession mavenSession = myEmbedder.getComponent(LegacySupport.class).getSession(); RepositorySystemSession repositorySession = myEmbedder.getComponent(LegacySupport.class).getRepositorySession(); if (repositorySession instanceof DefaultRepositorySystemSession) { DefaultRepositorySystemSession session = (DefaultRepositorySystemSession)repositorySession; MavenServerConsoleIndicatorImpl indicator = myLongRunningTask.getIndicator(); myImporterSpy.setIndicator(indicator); session.setTransferListener(new Maven3TransferListenerAdapter(indicator)); setupWorkspaceReader(session); session.setConfigProperty(ConflictResolver.CONFIG_PROP_VERBOSE, true); session.setConfigProperty(DependencyManagerUtils.CONFIG_PROP_VERBOSE, true); } List<ProjectBuildingResult> buildingResults = myTelemetry.callWithSpan("getProjectBuildingResults " + files.size(), () -> getProjectBuildingResults(request, files)); fillSessionCache(mavenSession, repositorySession, buildingResults); boolean addUnresolved = System.getProperty("idea.maven.no.use.dependency.graph") == null; boolean runInParallel = myResolveInParallel; Map<File, String> fileToNewDependencyHash = new ConcurrentHashMap<>(); myTelemetry.callWithSpan("dependencyHashes", () -> myTelemetry.execute( runInParallel, buildingResults, br -> { String newDependencyHash = Maven3EffectivePomDumper.dependencyHash(br.getProject()); if (null != newDependencyHash) { File pomFile = br.getPomFile(); if (pomFile != null) { fileToNewDependencyHash.put(pomFile, newDependencyHash); } } return br; } )); for (ProjectBuildingResult buildingResult : buildingResults) { MavenProject project = buildingResult.getProject(); if (project == null) { new Exception("PROJECT is null").printStackTrace(); } File pomFile = buildingResult.getPomFile(); String newDependencyHash = null; if (pomFile != null) { if (project == null) { executionResults.add(new Maven3ExecutionResult(pomFile, buildingResult.getProblems())); continue; } String previousDependencyHash = myPomHashMap.getDependencyHash(pomFile); newDependencyHash = fileToNewDependencyHash.get(pomFile); if (null != previousDependencyHash && previousDependencyHash.equals(newDependencyHash)) { Maven3ExecutionResult res = new Maven3ExecutionResult(project, null, new ArrayList<>(), new ArrayList<>()); res.setDependencyHash(previousDependencyHash); res.setDependencyResolutionSkipped(true); executionResults.add(res); continue; } } List<Exception> exceptions = new ArrayList<>(); loadExtensions(project, exceptions); project.setDependencyArtifacts(project.createArtifacts(myEmbedder.getComponent(ArtifactFactory.class), null, null)); buildingResultInfos.add(new ProjectBuildingResultInfo(buildingResult, exceptions, newDependencyHash)); } myLongRunningTask.updateTotalRequests(buildingResultInfos.size()); Collection<Maven3ExecutionResult> execResults = myTelemetry.callWithSpan("resolveBuildingResults", () -> myTelemetry.execute( runInParallel, buildingResultInfos, br -> { if (myLongRunningTask.isCanceled()) return new Maven3ExecutionResult(Collections.emptyList()); Maven3ExecutionResult result = myTelemetry.callWithSpan( "resolveBuildingResult " + br.buildingResult.getProjectId(), () -> resolveBuildingResult(repositorySession, addUnresolved, br.buildingResult, br.exceptions)); result.setDependencyHash(br.dependencyHash); myLongRunningTask.incrementFinishedRequests(); return result; } )); executionResults.addAll(execResults); } catch (Exception e) { executionResults.add(handleException(e)); } }); return executionResults; }
[ 53, 69 ]
@NotNull private Collection<Maven3ExecutionResult> doResolveProject()
5,076
public class Maven3XProjectResolver
[ "@NotNull\n public ArrayList<MavenServerExecutionResult> resolveProjects()", "@Override\n public String toString()", "@NotNull\n private Collection<Maven3ExecutionResult> doResolveProject()", "protected void setupWorkspaceReader(DefaultRepositorySystemSession session)", "@NotNull\n private Maven3ExecutionResult resolveBuildingResult(RepositorySystemSession repositorySession,\n boolean addUnresolved,\n ProjectBuildingResult buildingResult,\n List<Exception> exceptions)", "@NotNull\n private MavenServerExecutionResult createExecutionResult(@Nullable File file, Maven3ExecutionResult result)", "private static void fillSessionCache(MavenSession mavenSession,\n RepositorySystemSession session,\n List<ProjectBuildingResult> buildingResults)", "@NotNull\n protected List<ProjectBuildingResult> getProjectBuildingResults(@NotNull MavenExecutionRequest request, @NotNull Collection<File> files)", "protected void buildMultiplyPoms(@NotNull ProjectBuilder builder,\n List<ProjectBuildingResult> buildingResults,\n ProjectBuildingRequest projectBuildingRequest,\n @NotNull Collection<File> files\n )", "protected void buildSinglePom(ProjectBuilder builder,\n List<ProjectBuildingResult> buildingResults,\n ProjectBuildingRequest projectBuildingRequest,\n File pomFile)", "private void loadExtensions(MavenProject project, List<Exception> exceptions)", "private static Maven3ExecutionResult handleException(Exception e)", "private static Maven3ExecutionResult handleException(MavenProject mavenProject, Exception e)", "private DependencyResolutionResult resolveDependencies(MavenProject project, RepositorySystemSession session)", "@NotNull\n private Set<Artifact> resolveArtifacts(DependencyResolutionResult dependencyResolutionResult, boolean addUnresolvedNodes)", "private static void resolveConflicts(DependencyResolutionResult dependencyResolutionResult,\n Map<Dependency, Artifact> winnerDependencyMap)", "private boolean resolveAsModule(Artifact a)", "private void collectUnresolvedArtifactProblems(@Nullable File file,\n @Nullable DependencyResolutionResult result,\n Collection<MavenProjectProblem> problems)", "@NotNull\n private static String getRootMessage(Throwable each)", "private Collection<AbstractMavenLifecycleParticipant> getLifecycleParticipants(Collection<MavenProject> projects)" ]
intellij-community/plugins/maven/maven3-server-impl/src/org/jetbrains/idea/maven/server/utils/Maven3XProjectResolver.java
26,367
list_terminator_recover
static boolean list_terminator_recover(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "list_terminator_recover")) return false; boolean r; Marker m = enter_section_(b, l, _NOT_); r = !list_terminator_recover_0(b, l + 1); exit_section_(b, l, m, r, false, null); return r; }
[ 15, 38 ]
static boolean list_terminator_recover(PsiBuilder b, int l)
302
@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"}) public class ShParser implements PsiParser, LightPsiParser
[ "public ASTNode parse(IElementType t, PsiBuilder b)", "public void parseLight(IElementType t, PsiBuilder b)", "protected boolean parse_root_(IElementType t, PsiBuilder b)", "static boolean parse_root_(IElementType t, PsiBuilder b, int l)", "static boolean any_block(PsiBuilder b, int l)", "static boolean argument_list(PsiBuilder b, int l)", "static boolean argument_list_recover(PsiBuilder b, int l)", "private static boolean argument_list_recover_0(PsiBuilder b, int l)", "public static boolean arithmetic_expansion(PsiBuilder b, int l)", "private static boolean arithmetic_expansion_1(PsiBuilder b, int l)", "static boolean arithmetic_for_clause(PsiBuilder b, int l)", "private static boolean arithmetic_for_clause_5(PsiBuilder b, int l)", "static boolean arithmetic_for_expression(PsiBuilder b, int l)", "private static boolean arithmetic_for_expression_0(PsiBuilder b, int l)", "private static boolean arithmetic_for_expression_3(PsiBuilder b, int l)", "private static boolean arithmetic_for_expression_6(PsiBuilder b, int l)", "static boolean arithmetic_for_expression_recover(PsiBuilder b, int l)", "private static boolean arithmetic_for_expression_recover_0(PsiBuilder b, int l)", "public static boolean array_assignment(PsiBuilder b, int l)", "private static boolean array_assignment_1(PsiBuilder b, int l)", "public static boolean assignment_command(PsiBuilder b, int l)", "private static boolean assignment_command_0(PsiBuilder b, int l)", "private static boolean assignment_command_1(PsiBuilder b, int l)", "private static boolean assignment_command_2(PsiBuilder b, int l)", "private static boolean assignment_command_2_0(PsiBuilder b, int l)", "private static boolean assignment_command_2_0_1_0(PsiBuilder b, int l)", "private static boolean assignment_command_3(PsiBuilder b, int l)", "private static boolean assignment_command_3_0(PsiBuilder b, int l)", "public static boolean assignment_list(PsiBuilder b, int l)", "private static boolean assignment_list_1(PsiBuilder b, int l)", "private static boolean assignment_list_1_0(PsiBuilder b, int l)", "public static boolean block(PsiBuilder b, int l)", "public static boolean block_compound_list(PsiBuilder b, int l)", "private static boolean block_compound_list_1(PsiBuilder b, int l)", "private static boolean block_compound_list_1_0(PsiBuilder b, int l)", "private static boolean block_compound_list_1_0_0(PsiBuilder b, int l)", "static boolean block_compound_list_recover(PsiBuilder b, int l)", "private static boolean block_compound_list_recover_0(PsiBuilder b, int l)", "public static boolean brace_expansion(PsiBuilder b, int l)", "private static boolean brace_expansion_1(PsiBuilder b, int l)", "private static boolean brace_expansion_1_0(PsiBuilder b, int l)", "public static boolean case_clause(PsiBuilder b, int l)", "private static boolean case_clause_4(PsiBuilder b, int l)", "static boolean case_clause_list(PsiBuilder b, int l)", "private static boolean case_clause_list_1(PsiBuilder b, int l)", "private static boolean case_clause_list_1_0(PsiBuilder b, int l)", "private static boolean case_clause_list_1_0_1(PsiBuilder b, int l)", "static boolean case_clause_recover(PsiBuilder b, int l)", "public static boolean case_command(PsiBuilder b, int l)", "private static boolean case_command_1(PsiBuilder b, int l)", "static boolean case_pattern_recover(PsiBuilder b, int l)", "private static boolean case_pattern_recover_0(PsiBuilder b, int l)", "public static boolean command(PsiBuilder b, int l)", "private static boolean command_0(PsiBuilder b, int l)", "private static boolean command_0_1(PsiBuilder b, int l)", "private static boolean command_0_1_0(PsiBuilder b, int l)", "private static boolean command_0_1_0_1(PsiBuilder b, int l)", "public static boolean command_substitution_command(PsiBuilder b, int l)", "private static boolean command_substitution_command_0(PsiBuilder b, int l)", "private static boolean command_substitution_command_2_1(PsiBuilder b, int l)", "public static boolean commands_list(PsiBuilder b, int l)", "private static boolean commands_list_1(PsiBuilder b, int l)", "private static boolean commands_list_1_0(PsiBuilder b, int l)", "private static boolean commands_list_1_0_0(PsiBuilder b, int l)", "private static boolean commands_list_1_0_0_0(PsiBuilder b, int l)", "private static boolean commands_list_1_0_1(PsiBuilder b, int l)", "private static boolean commands_list_1_0_1_0(PsiBuilder b, int l)", "private static boolean commands_list_1_0_1_1(PsiBuilder b, int l)", "static boolean composed_var(PsiBuilder b, int l)", "private static boolean composed_var_1(PsiBuilder b, int l)", "private static boolean composed_var_1_0(PsiBuilder b, int l)", "static boolean composed_var_inner(PsiBuilder b, int l)", "public static boolean compound_case_list(PsiBuilder b, int l)", "private static boolean compound_case_list_0(PsiBuilder b, int l)", "private static boolean compound_case_list_0_0(PsiBuilder b, int l)", "private static boolean compound_case_list_0_1(PsiBuilder b, int l)", "public static boolean compound_list(PsiBuilder b, int l)", "private static boolean compound_list_1(PsiBuilder b, int l)", "private static boolean compound_list_1_0(PsiBuilder b, int l)", "private static boolean compound_list_1_0_0(PsiBuilder b, int l)", "static boolean compound_list_recover(PsiBuilder b, int l)", "private static boolean compound_list_recover_0(PsiBuilder b, int l)", "public static boolean conditional_command(PsiBuilder b, int l)", "private static boolean conditional_command_0(PsiBuilder b, int l)", "private static boolean conditional_command_0_1(PsiBuilder b, int l)", "private static boolean conditional_command_0_2(PsiBuilder b, int l)", "private static boolean conditional_command_0_2_1(PsiBuilder b, int l)", "private static boolean conditional_command_1(PsiBuilder b, int l)", "private static boolean conditional_command_1_1(PsiBuilder b, int l)", "private static boolean conditional_command_1_2(PsiBuilder b, int l)", "private static boolean conditional_command_1_2_1(PsiBuilder b, int l)", "public static boolean do_block(PsiBuilder b, int l)", "public static boolean elif_clause(PsiBuilder b, int l)", "public static boolean else_clause(PsiBuilder b, int l)", "static boolean end_of_list(PsiBuilder b, int l)", "public static boolean eval_command(PsiBuilder b, int l)", "private static boolean eval_command_1(PsiBuilder b, int l)", "private static boolean eval_command_1_0(PsiBuilder b, int l)", "static boolean file(PsiBuilder b, int l)", "private static boolean file_0(PsiBuilder b, int l)", "public static boolean for_clause(PsiBuilder b, int l)", "public static boolean for_command(PsiBuilder b, int l)", "public static boolean function_definition(PsiBuilder b, int l)", "private static boolean function_definition_0(PsiBuilder b, int l)", "private static boolean function_definition_0_0(PsiBuilder b, int l)", "static boolean function_definition_inner(PsiBuilder b, int l)", "private static boolean function_definition_inner_0(PsiBuilder b, int l)", "private static boolean function_definition_inner_0_3(PsiBuilder b, int l)", "private static boolean function_definition_inner_1(PsiBuilder b, int l)", "private static boolean function_definition_inner_1_1(PsiBuilder b, int l)", "private static boolean function_definition_inner_1_2(PsiBuilder b, int l)", "private static boolean function_definition_inner_1_4(PsiBuilder b, int l)", "public static boolean generic_command_directive(PsiBuilder b, int l)", "public static boolean heredoc(PsiBuilder b, int l)", "private static boolean heredoc_2(PsiBuilder b, int l)", "private static boolean heredoc_2_0(PsiBuilder b, int l)", "private static boolean heredoc_2_0_0(PsiBuilder b, int l)", "private static boolean heredoc_2_0_0_1(PsiBuilder b, int l)", "private static boolean heredoc_2_0_1(PsiBuilder b, int l)", "private static boolean heredoc_2_0_1_1(PsiBuilder b, int l)", "private static boolean heredoc_4(PsiBuilder b, int l)", "private static boolean heredoc_5(PsiBuilder b, int l)", "static boolean heredoc_pipeline_separator(PsiBuilder b, int l)", "public static boolean if_command(PsiBuilder b, int l)", "private static boolean if_command_3(PsiBuilder b, int l)", "private static boolean if_command_4(PsiBuilder b, int l)", "static boolean in_clause(PsiBuilder b, int l)", "private static boolean in_clause_1(PsiBuilder b, int l)", "static boolean in_for_clause(PsiBuilder b, int l)", "private static boolean in_for_clause_1(PsiBuilder b, int l)", "private static boolean in_for_clause_1_0(PsiBuilder b, int l)", "private static boolean in_for_clause_1_1(PsiBuilder b, int l)", "private static boolean in_for_clause_1_1_1(PsiBuilder b, int l)", "public static boolean include_command(PsiBuilder b, int l)", "private static boolean include_command_1(PsiBuilder b, int l)", "private static boolean include_command_1_0(PsiBuilder b, int l)", "public static boolean include_directive(PsiBuilder b, int l)", "private static boolean include_directive_0(PsiBuilder b, int l)", "private static boolean include_directive_0_0(PsiBuilder b, int l)", "public static boolean let_command(PsiBuilder b, int l)", "public static boolean list(PsiBuilder b, int l)", "private static boolean list_1(PsiBuilder b, int l)", "private static boolean list_1_0(PsiBuilder b, int l)", "private static boolean list_1_0_0(PsiBuilder b, int l)", "private static boolean list_1_0_1(PsiBuilder b, int l)", "public static boolean list_terminator(PsiBuilder b, int l)", "static boolean list_terminator_recover(PsiBuilder b, int l)", "private static boolean list_terminator_recover_0(PsiBuilder b, int l)", "public static boolean literal(PsiBuilder b, int l)", "static boolean newlines(PsiBuilder b, int l)", "static boolean not_lvalue(PsiBuilder b, int l)", "public static boolean number(PsiBuilder b, int l)", "public static boolean old_arithmetic_expansion(PsiBuilder b, int l)", "private static boolean old_arithmetic_expansion_1(PsiBuilder b, int l)", "static boolean old_arithmetic_expansion_expression(PsiBuilder b, int l)", "static boolean old_arithmetic_expansion_expression_recover(PsiBuilder b, int l)", "public static boolean parentheses_block(PsiBuilder b, int l)", "public static boolean pattern(PsiBuilder b, int l)", "private static boolean pattern_0(PsiBuilder b, int l)", "private static boolean pattern_1(PsiBuilder b, int l)", "private static boolean pattern_2(PsiBuilder b, int l)", "private static boolean pattern_2_0(PsiBuilder b, int l)", "private static boolean pattern_2_0_1(PsiBuilder b, int l)", "public static boolean pipeline_command(PsiBuilder b, int l)", "private static boolean pipeline_command_0(PsiBuilder b, int l)", "private static boolean pipeline_command_0_0(PsiBuilder b, int l)", "private static boolean pipeline_command_1(PsiBuilder b, int l)", "private static boolean pipeline_command_1_0(PsiBuilder b, int l)", "private static boolean pipeline_command_2(PsiBuilder b, int l)", "private static boolean pipeline_command_2_0(PsiBuilder b, int l)", "public static boolean pipeline_command_list(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1_0(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1_0_0(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1_0_0_0(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1_0_1(PsiBuilder b, int l)", "private static boolean pipeline_command_list_1_0_1_0(PsiBuilder b, int l)", "static boolean pipeline_recover(PsiBuilder b, int l)", "private static boolean pipeline_recover_0(PsiBuilder b, int l)", "public static boolean process_substitution(PsiBuilder b, int l)", "private static boolean process_substitution_0(PsiBuilder b, int l)", "public static boolean redirection(PsiBuilder b, int l)", "private static boolean redirection_1(PsiBuilder b, int l)", "private static boolean redirection_2(PsiBuilder b, int l)", "static boolean redirection_inner(PsiBuilder b, int l)", "private static boolean redirection_inner_0(PsiBuilder b, int l)", "private static boolean redirection_inner_0_0(PsiBuilder b, int l)", "private static boolean redirection_inner_0_1(PsiBuilder b, int l)", "private static boolean redirection_inner_1(PsiBuilder b, int l)", "private static boolean redirection_inner_1_0(PsiBuilder b, int l)", "static boolean redirection_target(PsiBuilder b, int l)", "public static boolean regex_pattern(PsiBuilder b, int l)", "public static boolean select_command(PsiBuilder b, int l)", "static boolean select_expression(PsiBuilder b, int l)", "private static boolean select_expression_1(PsiBuilder b, int l)", "public static boolean shell_command(PsiBuilder b, int l)", "public static boolean shell_parameter_expansion(PsiBuilder b, int l)", "private static boolean shell_parameter_expansion_1(PsiBuilder b, int l)", "static boolean shell_parameter_expansion_inner(PsiBuilder b, int l)", "public static boolean simple_command(PsiBuilder b, int l)", "private static boolean simple_command_1(PsiBuilder b, int l)", "private static boolean simple_command_1_0(PsiBuilder b, int l)", "public static boolean simple_command_element(PsiBuilder b, int l)", "static boolean simple_command_element_inner(PsiBuilder b, int l)", "private static boolean simple_command_element_inner_1(PsiBuilder b, int l)", "private static boolean simple_command_element_inner_1_1(PsiBuilder b, int l)", "static boolean simple_list(PsiBuilder b, int l)", "private static boolean simple_list_0(PsiBuilder b, int l)", "public static boolean string(PsiBuilder b, int l)", "private static boolean string_0(PsiBuilder b, int l)", "private static boolean string_0_1(PsiBuilder b, int l)", "private static boolean string_0_1_0(PsiBuilder b, int l)", "public static boolean subshell_command(PsiBuilder b, int l)", "public static boolean test_command(PsiBuilder b, int l)", "private static boolean test_command_1(PsiBuilder b, int l)", "public static boolean then_clause(PsiBuilder b, int l)", "public static boolean until_command(PsiBuilder b, int l)", "public static boolean variable(PsiBuilder b, int l)", "static boolean vars(PsiBuilder b, int l)", "static boolean w(PsiBuilder b, int l)", "public static boolean while_command(PsiBuilder b, int l)", "static boolean word_in_condition(PsiBuilder b, int l)", "static boolean word_in_expression(PsiBuilder b, int l)", "public static boolean condition(PsiBuilder b, int l, int g)", "public static boolean condition_0(PsiBuilder b, int l, int g)", "private static boolean logical_or_condition_0(PsiBuilder b, int l)", "private static boolean logical_and_condition_0(PsiBuilder b, int l)", "private static boolean equality_condition_0(PsiBuilder b, int l)", "private static boolean regex_condition_0(PsiBuilder b, int l)", "private static boolean comparison_condition_0(PsiBuilder b, int l)", "public static boolean logical_bitwise_condition(PsiBuilder b, int l)", "public static boolean literal_condition(PsiBuilder b, int l)", "private static boolean literal_condition_0(PsiBuilder b, int l)", "private static boolean literal_condition_1(PsiBuilder b, int l)", "public static boolean parentheses_condition(PsiBuilder b, int l)", "public static boolean expression(PsiBuilder b, int l, int g)", "public static boolean expression_0(PsiBuilder b, int l, int g)", "private static boolean assignment_expression_0(PsiBuilder b, int l)", "private static boolean conditional_expression_1(PsiBuilder b, int l)", "private static boolean equality_expression_0(PsiBuilder b, int l)", "private static boolean comparison_expression_0(PsiBuilder b, int l)", "private static boolean bitwise_shift_expression_0(PsiBuilder b, int l)", "private static boolean add_expression_0(PsiBuilder b, int l)", "private static boolean mul_expression_0(PsiBuilder b, int l)", "public static boolean logical_bitwise_negation_expression(PsiBuilder b, int l)", "private static boolean logical_bitwise_negation_expression_0(PsiBuilder b, int l)", "public static boolean unary_expression(PsiBuilder b, int l)", "private static boolean unary_expression_0(PsiBuilder b, int l)", "public static boolean pre_expression(PsiBuilder b, int l)", "private static boolean pre_expression_0(PsiBuilder b, int l)", "private static boolean post_expression_0(PsiBuilder b, int l)", "public static boolean array_expression(PsiBuilder b, int l)", "public static boolean literal_expression(PsiBuilder b, int l)", "public static boolean parentheses_expression(PsiBuilder b, int l)", "public static boolean operation(PsiBuilder b, int l, int g)", "public static boolean operation_0(PsiBuilder b, int l, int g)", "private static boolean assignment_operation_0(PsiBuilder b, int l)", "private static boolean conditional_operation_1(PsiBuilder b, int l)", "private static boolean equality_operation_0(PsiBuilder b, int l)", "private static boolean comparison_operation_0(PsiBuilder b, int l)", "private static boolean bitwise_shift_operation_0(PsiBuilder b, int l)", "private static boolean add_operation_0(PsiBuilder b, int l)", "private static boolean mul_operation_0(PsiBuilder b, int l)", "public static boolean logical_bitwise_negation_operation(PsiBuilder b, int l)", "private static boolean logical_bitwise_negation_operation_0(PsiBuilder b, int l)", "public static boolean unary_operation(PsiBuilder b, int l)", "private static boolean unary_operation_0(PsiBuilder b, int l)", "public static boolean pre_operation(PsiBuilder b, int l)", "private static boolean pre_operation_0(PsiBuilder b, int l)", "private static boolean post_operation_0(PsiBuilder b, int l)", "public static boolean array_operation(PsiBuilder b, int l)", "public static boolean literal_operation(PsiBuilder b, int l)", "public static boolean parentheses_operation(PsiBuilder b, int l)" ]
intellij-community/plugins/sh/core/gen/com/intellij/sh/parser/ShParser.java
46,086
isPositionValid
protected static boolean isPositionValid(@Nullable final XSourcePosition sourcePosition) { return ReadAction.compute(() -> sourcePosition != null && sourcePosition.getFile().isValid()).booleanValue(); }
[ 25, 40 ]
protected static boolean isPositionValid(@Nullable final XSourcePosition sourcePosition)
208
public abstract class BreakpointWithHighlighter<P extends JavaBreakpointProperties> extends Breakpoint<P>
[ "protected abstract void createRequestForPreparedClass(final DebugProcessImpl debugProcess, final ReferenceType classType)", "protected abstract Icon getDisabledIcon(boolean isMuted)", "protected Icon getInvalidIcon(boolean isMuted)", "protected Icon getSetIcon(boolean isMuted)", "protected abstract Icon getVerifiedIcon(boolean isMuted)", "protected abstract Icon getVerifiedWarningsIcon(boolean isMuted)", "@Override\n public Icon getIcon()", "@Nullable\n @Override\n public @NlsSafe String getClassName()", "@Override\n @Nullable\n public String getShortClassName()", "@Nullable\n @Override\n public String getPackageName()", "@Nullable\n public BreakpointWithHighlighter init()", "private void updateCaches(@Nullable DebugProcessImpl debugProcess)", "private Icon calcIcon(@Nullable DebugProcessImpl debugProcess)", "protected Icon getValidatingIcon(boolean muted)", "@Override\n void scheduleReload()", "@Override\n public boolean isValid()", "protected static boolean isPositionValid(@Nullable final XSourcePosition sourcePosition)", "@Nullable\n public SourcePosition getSourcePosition()", "@NotNull\n @Nls\n @Deprecated\n public String getDescription()", "public List<@Nls String> getPropertyXMLDescriptions()", "@RequiresBackgroundThread\n @RequiresReadLock\n @Override\n public void reload()", "private void resetSourcePosition()", "@Nullable\n static BreakpointRequest createLocationBreakpointRequest(@NotNull FilteredRequestor requestor,\n @Nullable Location location,\n @NotNull DebugProcessImpl debugProcess)", "@Override\n public void createRequest(@NotNull DebugProcessImpl debugProcess)", "protected boolean isMuted(@NotNull final DebugProcessImpl debugProcess)", "@Override\n public void processClassPrepare(DebugProcess debugProcess, ReferenceType classType)", "@Override\n public final void updateUI()", "public boolean isAt(@NotNull Document document, int offset)", "@Override\n public PsiClass getPsiClass()", "protected static PsiClass getPsiClassAt(@Nullable final SourcePosition sourcePosition)", "@Override\n public abstract Key<? extends BreakpointWithHighlighter> getCategory()", "protected boolean isVisible()", "public void setVisible(boolean visible)", "@Nullable\n public Document getDocument()", "public int getLineIndex()", "protected String getFileName()", "@Override\n public void readExternal(@NotNull Element breakpointNode)", "public String toString()" ]
intellij-community/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointWithHighlighter.java
441,817
processPackageReferences
private static void processPackageReferences(final PsiPlainTextFile file, final PsiReferenceProcessor processor, final XmlAttribute attribute) { final TextRange valueRange = getValueRange(attribute); final String value = attribute.getValue(); int pos=-1; while(true) { pos = value.indexOf('/', pos+1); if (pos < 0) { break; } processor.execute(new FormPackageReference(file, new TextRange(valueRange.getStartOffset(), valueRange.getStartOffset() + pos))); } }
[ 20, 44 ]
private static void processPackageReferences(final PsiPlainTextFile file, final PsiReferenceProcessor processor, final XmlAttribute attribute)
607
public class FormReferenceProvider extends PsiReferenceProvider
[ "@Override\n public boolean acceptsTarget(@NotNull PsiElement target)", "@Override\n public PsiReference @NotNull [] getReferencesByElement(final @NotNull PsiElement element, final @NotNull ProcessingContext context)", "public static @Nullable PsiFile getFormFile(PsiField field)", "public static @Nullable PsiReference getFormReference(PsiField field)", "public static @Nullable\n PsiType getGUIComponentType(final PsiPlainTextFile file, String fieldName)", "public static ModCommand setGUIComponentType(PsiPlainTextFile file, String fieldName, String typeText)", "private static void processReferences(final PsiPlainTextFile file, final PsiReferenceProcessor processor)", "private static TextRange getValueRange(final XmlAttribute classToBind)", "private static void processReferences(final XmlTag tag,\n final PsiReference classReference,\n final PsiPlainTextFile file,\n final PsiReferenceProcessor processor)", "private static void processResourceBundleFileReferences(final PsiPlainTextFile file,\n final PsiReferenceProcessor processor,\n final XmlAttribute titleBundleAttribute)", "private static void processPackageReferences(final PsiPlainTextFile file,\n final PsiReferenceProcessor processor,\n final XmlAttribute attribute)", "private static void processNestedFormReference(final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file)", "private static void processButtonGroupReference(final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file,\n final PsiReference classReference)", "private static void processPropertyReference(final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file,\n final String className)", "public static @Nullable String getBundleName(final PropertiesFile propertiesFile)", "private static CachedFormData getCachedData(final PsiPlainTextFile element)", "public void projectOpened()", "public void projectClosed()", "public @NotNull\n @NonNls String getComponentName()", "public void initComponent()", "public void disposeComponent()" ]
intellij-community/plugins/ui-designer/src/com/intellij/uiDesigner/binding/FormReferenceProvider.java
158,258
hasTag
private static boolean hasTag(@NotNull XmlElementDescriptor elementDescriptor, String tagName, Set<? super XmlElementDescriptor> visited) { final String name = elementDescriptor.getDefaultName(); if (name == null) { LOG.error(elementDescriptor + " returned null as default name"); return false; } if (name.equals(tagName)) { return true; } for (XmlElementDescriptor descriptor : elementDescriptor.getElementsDescriptors(null)) { if (!visited.contains(elementDescriptor)) { visited.add(elementDescriptor); if (hasTag(descriptor, tagName, visited)) { return true; } } } return false; }
[ 23, 29 ]
private static boolean hasTag(@NotNull XmlElementDescriptor elementDescriptor, String tagName, Set<? super XmlElementDescriptor> visited)
681
public class DefaultXmlExtension extends XmlExtension
[ "@Override\n public boolean isAvailable(final PsiFile file)", "@Override\n public @NotNull List<TagInfo> getAvailableTagNames(final @NotNull XmlFile file, final @NotNull XmlTag context)", "public static Set<String> filterNamespaces(final Set<String> namespaces, final String tagName, final XmlFile context)", "private static boolean hasTag(@NotNull XmlElementDescriptor elementDescriptor, String tagName, Set<? super XmlElementDescriptor> visited)", "@Override\n public SchemaPrefix getPrefixDeclaration(final XmlTag context, String namespacePrefix)" ]
intellij-community/xml/xml-psi-impl/src/com/intellij/xml/DefaultXmlExtension.java
9,953
processDroppedDirectories
protected void processDroppedDirectories(@NotNull List<? extends VirtualFile> dirs) { if (dirs.isEmpty()) return; Module[] modules = ModuleManager.getInstance(myProject).getModules(); if (modules.length == 0) return; final Module module = modules[0]; ModuleRootModificationUtil.updateModel(module, model -> { for (VirtualFile file : dirs) { model.addContentEntry(file); } }); }
[ 15, 40 ]
protected void processDroppedDirectories(@NotNull List<? extends VirtualFile> dirs)
423
public abstract class AttachableProjectViewPane extends ProjectViewPane
[ "@NotNull\n @Override\n public String getTitle()", "@NotNull\n @Override\n protected ProjectViewTree createTree(@NotNull DefaultTreeModel treeModel)", "@NotNull\n @Override\n public JComponent createComponent()", "@Override\n protected void beforeDnDUpdate(DnDEvent event)", "@Override\n protected void beforeDnDLeave()", "@NotNull\n @Override\n protected ProjectAbstractTreeStructureBase createStructure()", "protected void processDroppedDirectories(@NotNull List<? extends VirtualFile> dirs)", "@NotNull\n private static List<VirtualFile> getDirectories(@NotNull DnDEvent event)", "@NotNull\n private JComponent wrap(@NotNull JComponent wrappee)", "private void init(@NotNull JComponent wrappee)", "private void hideDropArea()", "@Override\n public void drop(@NotNull final DnDEvent event)", "@Override\n public boolean update(@NotNull DnDEvent event)", "private static boolean isDroppable(@NotNull DnDEvent event)", "private static boolean isOverComponent(@Nullable JComponent component)", "private void processDnD(DnDEvent event)" ]
intellij-community/platform/lang-impl/src/com/intellij/ide/projectView/impl/AttachableProjectViewPane.java
281,584
acceptChildren
@Override public void acceptChildren(@NotNull GroovyElementVisitor visitor) { PsiElement child = getFirstChild(); while (child != null) { if (child instanceof GroovyPsiElement) { ((GroovyPsiElement) child).accept(visitor); } child = child.getNextSibling(); } }
[ 24, 38 ]
@Override public void acceptChildren(@NotNull GroovyElementVisitor visitor)
303
public abstract class GroovyFileBaseImpl extends PsiFileBase implements GroovyFileBase, GrControlFlowOwner
[ "@Override\n @NotNull\n public FileType getFileType()", "@Override\n public String toString()", "@Override\n public GrTypeDefinition @NotNull [] getTypeDefinitions()", "@Override\n public GrMethod @NotNull [] getMethods()", "@Override\n public GrTopStatement @NotNull [] getTopStatements()", "@Override\n public boolean importClass(@NotNull PsiClass aClass)", "@Override\n public void removeImport(@NotNull GrImportStatement importStatement)", "@Override\n public void removeElements(PsiElement[] elements)", "@Override\n public GrStatement @NotNull [] getStatements()", "@Override\n @NotNull\n public GrStatement addStatementBefore(@NotNull GrStatement statement, @Nullable GrStatement anchor)", "@Override\n public void removeVariable(GrVariable variable)", "@Override\n public GrVariableDeclaration addVariableDeclarationBefore(GrVariableDeclaration declaration, GrStatement anchor)", "@Override\n public void accept(@NotNull GroovyElementVisitor visitor)", "@Override\n public void acceptChildren(@NotNull GroovyElementVisitor visitor)", "@Override\n public PsiClass @NotNull [] getClasses()", "@Override\n public void clearCaches()", "@Override\n public Instruction[] getControlFlow()", "public GroovyControlFlow getGroovyControlFlow()", "@Override\n public boolean isTopControlFlowOwner()", "@Override\n public void deleteChildRange(PsiElement first, PsiElement last)", "@Override\n public boolean processDeclarations(@NotNull PsiScopeProcessor processor,\n @NotNull ResolveState state,\n @Nullable PsiElement lastParent,\n @NotNull PsiElement place)", "@NotNull\n private DeclarationHolder getAppropriateHolder(@Nullable AnnotationHint hint)", "private boolean useCache()", "@NotNull\n private DeclarationHolder buildCache(boolean annotationCache)", "private boolean processDeclarationsNoCache(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, @NotNull PsiElement place)", "public boolean processComplexImports(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, @NotNull PsiElement place)" ]
intellij-community/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyFileBaseImpl.java
70,821
buildErrorString
@Override @NotNull public String buildErrorString(Object... infos) { return InspectionGadgetsBundle.message(infos[0] instanceof PsiInstanceOfExpression ? "instanceof.check.for.this.problem.descriptor" : "instanceof.check.for.this.equality.problem.descriptor"); }
[ 37, 53 ]
@Override @NotNull public String buildErrorString(Object... infos)
359
public final class InstanceofThisInspection extends BaseInspection
[ "@Override\n @NotNull\n public String buildErrorString(Object... infos)", "@Override\n public BaseInspectionVisitor buildVisitor()", "@Override\n public void visitMethodCallExpression(@NotNull PsiMethodCallExpression call)", "@Override\n public void visitThisExpression(@NotNull PsiThisExpression thisValue)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/abstraction/InstanceofThisInspection.java
462,786
setModalityType
@Override public void setModalityType(Dialog.ModalityType modalityType) { }
[ 24, 39 ]
@Override public void setModalityType(Dialog.ModalityType modalityType)
79
final class HeadlessDialog implements AbstractDialog
[ "@Override\n public void setUndecorated(boolean undecorated)", "@Override\n public void addMouseListener(MouseListener listener)", "@Override\n public void addMouseMotionListener(MouseMotionListener listener)", "@Override\n public void addKeyListener(KeyListener listener)", "@Override\n public void setModal(boolean b)", "@Override\n public void toFront()", "@Override\n public void setContentPane(Container content)", "@Override\n public void centerInParent()", "@Override\n public void toBack()", "@Override\n public JRootPane getRootPane()", "@Override\n public void remove(Component root)", "@Override\n public Container getContentPane()", "@Override\n public void validate()", "@Override\n public void repaint()", "@Override\n public Window getOwner()", "@Override\n public JDialog getWindow()", "@Override\n public Dimension getSize()", "@Override\n public String getTitle()", "@Override\n public void pack()", "@Override\n public Dimension getPreferredSize()", "@Override\n public boolean isVisible()", "@Override\n public boolean isShowing()", "@Override\n public void setSize(int width, int height)", "@Override\n public void setTitle(String title)", "@Override\n public boolean isResizable()", "@Override\n public void setResizable(boolean resizable)", "@Override\n public @NotNull Point getLocation()", "@Override\n public void setLocation(@NotNull Point p)", "@Override\n public void setLocation(int x, int y)", "@Override\n public boolean isModal()", "@Override\n public void setModalityType(Dialog.ModalityType modalityType)", "@Override\n public Dialog.ModalityType getModalityType()", "@Override\n public void show()", "@Override\n public @NotNull IdeFocusManager getFocusManager()", "@Override\n public void dispose()" ]
intellij-community/platform/platform-impl/src/com/intellij/openapi/ui/impl/HeadlessDialog.java
297,026
newIntArray
@Contract(pure=true) public static int @NotNull [] newIntArray(int count) { return count == 0 ? ArrayUtilRt.EMPTY_INT_ARRAY : new int[count]; }
[ 53, 64 ]
@Contract(pure=true) public static int @NotNull [] newIntArray(int count)
151
public final class ArrayUtil
[ "@Contract(pure=true)\n public static byte @NotNull [] realloc(byte @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static double @NotNull [] realloc(double @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static boolean @NotNull [] realloc(boolean @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static short @NotNull [] realloc(short @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static long @NotNull [] realloc(long @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static int @NotNull [] realloc(int @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static <T> T @NotNull [] realloc(T @NotNull [] array, int newSize, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static long @NotNull [] append(long @NotNull [] array, long value)", "@Contract(pure=true)\n public static int @NotNull [] append(int @NotNull [] array, int value)", "@Contract(pure=true)\n public static <T> T @NotNull [] insert(T @NotNull [] array, int index, T value)", "@Contract(pure=true)\n public static int @NotNull [] insert(int @NotNull [] array, int index, int value)", "@Contract(pure=true)\n public static long @NotNull [] insert(long @NotNull [] array, int index, long value)", "@Contract(pure=true)\n public static char @NotNull [] insert(char @NotNull [] array, int index, char value)", "@Contract(pure=true)\n public static byte @NotNull [] append(byte @NotNull [] array, byte value)", "@Contract(pure=true)\n public static boolean @NotNull [] append(boolean @NotNull [] array, boolean value)", "@Contract(pure=true)\n public static char @NotNull [] realloc(char @NotNull [] array, int newSize)", "@Contract(pure=true)\n public static <T> T @NotNull [] toObjectArray(@NotNull Collection<? extends T> collection, @NotNull Class<T> aClass)", "@Contract(pure=true)\n public static <T> T @NotNull [] toObjectArray(@NotNull Class<T> aClass, Object @NotNull ... source)", "@Contract(pure=true)\n public static Object @NotNull [] toObjectArray(@NotNull Collection<?> collection)", "@Contract(pure=true)\n public static int @NotNull [] toIntArray(@NotNull Collection<Integer> list)", "@Contract(pure=true)\n public static <T> T @NotNull [] mergeArrays(T @NotNull [] a1, T @NotNull [] a2)", "@Contract(pure=true)\n public static <T> T @NotNull [] mergeCollections(@NotNull Collection<? extends T> c1, @NotNull Collection<? extends T> c2, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static <T> T @NotNull [] mergeArrays(T @NotNull [] a1, T @NotNull [] a2, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static String @NotNull [] mergeArrays(String @NotNull [] a1, String @NotNull ... a2)", "@Contract(pure=true)\n public static int @NotNull [] mergeArrays(int @NotNull [] a1, int @NotNull [] a2)", "@Contract(pure=true)\n public static byte @NotNull [] mergeArrays(byte @NotNull [] a1, byte @NotNull [] a2)", "@Contract(pure=true)\n public static int[] intersection(int @NotNull [] a1, int @NotNull [] a2)", "@Contract(pure=true)\n public static <T> T @NotNull [] mergeArrayAndCollection(T @NotNull [] array,\n @NotNull Collection<? extends T> collection,\n @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static <T> T @NotNull [] append(T @NotNull [] src, @Nullable T element)", "@Contract(pure=true)\n public static <T> T @NotNull [] prepend(T element, T @NotNull [] array)", "@Contract(pure=true)\n public static <T> T @NotNull [] prepend(T element, T @NotNull [] array, @NotNull Class<T> type)", "@Contract(pure=true)\n public static <T> T @NotNull [] prepend(T element, T @NotNull [] src, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static byte @NotNull [] prepend(byte element, byte @NotNull [] array)", "@Contract(pure=true)\n public static <T> T @NotNull [] append(T @NotNull [] src, T element, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static <T> T @NotNull [] append(T @NotNull [] src, @Nullable T element, @NotNull Class<T> componentType)", "@Contract(pure=true)\n public static <T> T @NotNull [] remove(T @NotNull [] src, int idx)", "public static <T> T @NotNull [] newArray(@NotNull Class<T> type, int length)", "@Contract(pure=true)\n public static <T> T @NotNull [] remove(T @NotNull [] src, int idx, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static <T> T @NotNull [] remove(T @NotNull [] src, T element)", "@Contract(pure=true)\n public static <T> T @NotNull [] remove(T @NotNull [] src, T element, @NotNull ArrayFactory<? extends T> factory)", "@Contract(pure=true)\n public static int @NotNull [] remove(int @NotNull [] src, int idx)", "@Contract(pure=true)\n public static short @NotNull [] remove(short @NotNull [] src, int idx)", "@Contract(pure=true)\n public static int find(int @NotNull [] src, int obj)", "@Contract(pure=true)\n public static <T> int find(T @NotNull [] src, T obj)", "@Contract(pure=true)\n public static boolean startsWith(byte @NotNull [] array, byte @NotNull [] prefix)", "@Contract(pure=true)\n public static <E> boolean startsWith(E @NotNull [] array, E @NotNull [] subArray)", "@Contract(pure=true)\n public static boolean startsWith(byte @NotNull [] array, int start, byte @NotNull [] subArray)", "@ApiStatus.ScheduledForRemoval\n @Deprecated\n public static <T> boolean equals(T @NotNull [] a1, T @NotNull [] a2, @NotNull Comparator<? super T> comparator)", "@Contract(pure=true)\n public static <T> T @NotNull [] reverseArray(T @NotNull [] array)", "@Contract(pure=true)\n public static int @NotNull [] reverseArray(int @NotNull [] array)", "@Contract(pure=true)\n public static int lexicographicCompare(String @NotNull [] obj1, String @NotNull [] obj2)", "@Contract(pure=true)\n public static int lexicographicCompare(int @NotNull [] obj1, int @NotNull [] obj2)", "@Contract(pure=true)\n public static <T extends Comparable<T>> int lexicographicCompare(T @NotNull [] obj1, T @NotNull [] obj2)", "public static <T> void swap(T @NotNull [] array, int i1, int i2)", "public static void swap(int @NotNull [] array, int i1, int i2)", "public static void swap(boolean @NotNull [] array, int i1, int i2)", "public static void swap(char @NotNull [] array, int i1, int i2)", "public static <T> void rotateLeft(T @NotNull [] array, int i1, int i2)", "public static <T> void rotateRight(T @NotNull [] array, int i1, int i2)", "@Contract(pure=true)\n public static int indexOf(Object @NotNull [] objects, @Nullable Object object)", "@Contract(pure=true)\n public static <T> int indexOf(@NotNull List<? extends T> objects, T object, @NotNull BiPredicate<? super T, ? super T> predicate)", "@Contract(pure=true)\n public static <T> int indexOf(T @NotNull [] objects, T object, @NotNull BiPredicate<? super T, ? super T> comparator)", "@Contract(pure=true)\n public static int indexOf(long @NotNull [] ints, long value)", "@Contract(pure=true)\n public static int indexOf(int @NotNull [] ints, int value)", "@Contract(pure = true)\n public static int indexOf(byte @NotNull [] array, byte @NotNull [] pattern, int startIndex)", "@Contract(pure=true)\n public static <T> int lastIndexOf(T @NotNull [] src, @Nullable T obj)", "@Contract(pure=true)\n public static int lastIndexOf(int @NotNull [] src, int obj)", "@Contract(pure=true)\n public static int lastIndexOfNot(int @NotNull [] src, int obj)", "@SafeVarargs\n @Contract(pure=true)\n public static <T> boolean contains(@Nullable T o, T @NotNull ... objects)", "@Contract(pure = true)\n public static boolean contains(@Nullable String s, String @NotNull ... strings)", "@Contract(pure=true)\n public static int @NotNull [] newIntArray(int count)", "@Contract(pure=true)\n public static byte @NotNull [] newByteArray(int count)", "@Contract(pure=true)\n public static long @NotNull [] newLongArray(int count)", "@Contract(pure=true)\n public static String @NotNull [] newStringArray(int count)", "@Contract(pure=true)\n public static Object @NotNull [] newObjectArray(int count)", "@Contract(pure=true)\n public static <E> E @NotNull [] ensureExactSize(int count, E @NotNull [] sample)", "@Contract(value = \"null -> null\", pure = true)\n public static @Nullable <T> T getFirstElement(T @Nullable [] array)", "@Contract(value = \"null -> null\", pure=true)\n public static <T> T getLastElement(T @Nullable [] array)", "@Contract(pure=true)\n public static int getLastElement(int @Nullable [] array, int defaultValue)", "@Contract(value = \"null -> true\", pure=true)\n public static <T> boolean isEmpty(T @Nullable [] array)", "@Contract(pure=true)\n public static String @NotNull [] toStringArray(@Nullable Collection<String> collection)", "public static <T> void copy(@NotNull Collection<? extends T> src, T @NotNull [] dst, int dstOffset)", "@Contract(value = \"null -> null; !null -> !null\", pure = true)\n public static <T> T @Nullable [] copyOf(T @Nullable [] original)", "@Contract(value = \"null -> null; !null -> !null\", pure = true)\n public static boolean @Nullable [] copyOf(boolean @Nullable [] original)", "@Contract(value = \"null -> null; !null -> !null\", pure = true)\n public static int @Nullable [] copyOf(int @Nullable [] original)", "@Contract(value = \"null -> null; !null -> !null\", pure = true)\n public static byte @Nullable [] copyOf(byte @Nullable [] original)", "@Contract(pure = true)\n public static <T> T @NotNull [] stripTrailingNulls(T @NotNull [] array)", "private static <T> int trailingNullsIndex(T @NotNull [] array)", "public static long averageAmongMedians(long @NotNull [] time, int part)", "public static long averageAmongMedians(int @NotNull [] time, int part)", "@Contract(pure = true)\n public static int min(int @NotNull [] values)", "@Contract(pure = true)\n public static int max(int @NotNull [] values)", "@Contract(pure = true)\n public static double max(double @NotNull [] values)", "@Contract(pure = true)\n public static int[] mergeSortedArrays(int @NotNull [] a1, int @NotNull [] a2, boolean mergeEqualItems)", "public static @NotNull <T> Class<T> getComponentType(T @NotNull [] collection)", "@Contract(pure=true)\n public static <T> int indexOfIdentity(T @NotNull [] array, T element)", "public static <T> boolean areEqual(T @NotNull [] arr1, T @NotNull [] arr2, @NotNull BiPredicate<? super T, ? super T> equalityCondition)" ]
intellij-community/platform/util/base/src/com/intellij/util/ArrayUtil.java
204,323
updateMethod
@NotNull MethodNode updateMethod(PsiMethod method) { myMethodGroup.removeAllChildren(); MethodNode methodNode = new MethodNode(method); myMethodGroup.add(methodNode); reload(myMethodGroup); return methodNode; }
[ 22, 34 ]
@NotNull MethodNode updateMethod(PsiMethod method)
234
class PreviewTreeModel extends DefaultTreeModel
[ "@Override\n public DefaultMutableTreeNode getRoot()", "@NotNull\n MethodNode updateMethod(PsiMethod method)", "@NotNull\n public List<DuplicateNode> getEnabledDuplicates()", "@NotNull\n public List<DuplicateNode> getAllDuplicates()", "@NotNull\n public PatternNode getPatternNode()", "public synchronized boolean isValid()", "private synchronized void setValidImpl(boolean valid)", "public void setValid(boolean valid)", "private void setValid(TreeNode node, boolean valid)" ]
intellij-community/java/java-impl-refactorings/src/com/intellij/refactoring/extractMethod/preview/PreviewTreeModel.java
454,172
getPertinentApplicabilityLevel
@ApplicabilityLevelConstant public int getPertinentApplicabilityLevel() { return getPertinentApplicabilityLevel(null); }
[ 41, 71 ]
@ApplicabilityLevelConstant public int getPertinentApplicabilityLevel()
128
public class MethodCandidateInfo extends CandidateInfo
[ "public boolean isVarargs()", "public boolean isApplicable()", "@ApplicabilityLevelConstant\n private int getApplicabilityLevelInner()", "@ApplicabilityLevelConstant\n public int getApplicabilityLevel()", "@ApplicabilityLevelConstant\n public int getPertinentApplicabilityLevel()", "@ApplicabilityLevelConstant\n public int getPertinentApplicabilityLevel(@Nullable Map<MethodCandidateInfo, PsiSubstitutor> map)", "@ApplicabilityLevelConstant\n private int getPertinentApplicabilityLevelInner(Supplier<? extends PsiSubstitutor> substitutorSupplier)", "private <T> T computeWithKnownTargetType(final Computable<T> computable, PsiSubstitutor substitutor)", "public boolean isOnArgumentList(PsiExpressionList argumentList)", "public void setErased()", "public boolean isErased()", "private static boolean checkFunctionalInterfaceAcceptance(PsiMethod method, PsiType left, PsiType right, boolean allowUncheckedConversion)", "public boolean isToInferApplicability()", "public ThreeState isPotentiallyCompatible()", "private static ThreeState isPotentialCompatible(PsiExpression expression, PsiType formalType, PsiMethod method)", "@NotNull\n public PsiSubstitutor getSiteSubstitutor()", "@NotNull\n public PsiSubstitutor getSubstitutorFromQualifier()", "@NotNull\n @Override\n public PsiSubstitutor getSubstitutor()", "@NotNull\n public PsiSubstitutor getSubstitutor(boolean includeReturnConstraint)", "public static boolean isOverloadCheck()", "public static boolean isOverloadCheck(PsiElement argumentList)", "public boolean isTypeArgumentsApplicable()", "private boolean isTypeArgumentsApplicable(Computable<? extends PsiSubstitutor> computable)", "protected PsiElement getParent()", "@Override\n public boolean isValidResult()", "@NotNull\n @Override\n public PsiMethod getElement()", "@NotNull\n public PsiSubstitutor inferTypeArguments(@NotNull ParameterTypeInferencePolicy policy, boolean includeReturnConstraint)", "public PsiSubstitutor inferSubstitutorFromArgs(@NotNull ParameterTypeInferencePolicy policy, final PsiExpression[] arguments)", "@NotNull\n public PsiSubstitutor inferTypeArguments(@NotNull final ParameterTypeInferencePolicy policy,\n final PsiExpression @NotNull [] arguments,\n boolean includeReturnConstraint)", "public boolean isRawSubstitution()", "public boolean isInferencePossible()", "public PsiType @Nullable [] getArgumentTypes()", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()", "public void setApplicabilityError(@NotNull @NlsContexts.DetailedDescription String applicabilityError)", "public void markNotApplicable()", "public @NlsContexts.DetailedDescription String getInferenceErrorMessage()", "public String getInferenceErrorMessageAssumeAlreadyComputed()" ]
intellij-community/java/java-psi-api/src/com/intellij/psi/infos/MethodCandidateInfo.java
327,877
getCurrentContext
@NotNull @Contract(pure = true) public static InferenceContext getCurrentContext() { InferenceContext context = ourInferenceContext.get(); return context != null ? context : getTopContext(); }
[ 67, 84 ]
@NotNull @Contract(pure = true) public static InferenceContext getCurrentContext()
206
@SuppressWarnings("UtilityClassWithoutPrivateConstructor") public final class TypeInferenceHelper
[ "static <T> T doInference(@NotNull Map<VariableDescriptor, DFAType> bindings, @NotNull Supplier<? extends T> computation)", "private static <T> T withContext(@NotNull InferenceContext context, @NotNull Supplier<? extends T> computation)", "@NotNull\n @Contract(pure = true)\n public static InferenceContext getCurrentContext()", "public static <T> T inTopContext(@NotNull Supplier<? extends T> computation)", "@NotNull\n @Contract(pure = true)\n public static InferenceContext getTopContext()", "@Nullable\n public static PsiType getInferredType(@NotNull final GrReferenceExpression refExpr)", "@Nullable\n public static PsiType getInferredType(int descriptor, Instruction instruction, GrControlFlowOwner scope)", "@Nullable\n public static PsiType getVariableTypeInContext(@Nullable PsiElement context, @NotNull GrVariable variable)", "public static boolean isTooComplexTooAnalyze(@NotNull GrControlFlowOwner scope)", "@NotNull\n static InferenceCache getInferenceCache(@NotNull final GrControlFlowOwner scope)", "public static GroovyControlFlow getFlatControlFlow(@NotNull final GrControlFlowOwner scope)", "@Nullable\n static List<DefinitionMap> getDefUseMaps(@NotNull GroovyControlFlow flow)", "@Nullable\n public static PsiType getInitializerType(final PsiElement element)", "@Nullable\n public static PsiType getInitializerTypeFor(PsiElement element)", "@Nullable\n public static GrExpression getInitializerFor(GrExpression lValue)", "public static boolean isSimpleEnoughForAugmenting(Instruction @NotNull [] flow)" ]
intellij-community/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/dataFlow/types/TypeInferenceHelper.java
72,946
update
@Override public void update(@NotNull AnActionEvent e) { VirtualFile myFile = e.getData(CommonDataKeys.VIRTUAL_FILE); boolean enabled = myFile != null && checkEnabled(myFile); e.getPresentation().setEnabled(enabled); e.getPresentation().setVisible(myFile != null); }
[ 24, 30 ]
@Override public void update(@NotNull AnActionEvent e)
286
public class ChangeFileEncodingAction extends AnAction implements DumbAware, LightEditCompatible
[ "private boolean checkEnabled(@NotNull VirtualFile virtualFile)", "@Override\n public void update(@NotNull AnActionEvent e)", "@Override\n public @NotNull ActionUpdateThread getActionUpdateThread()", "@Override\n public final void actionPerformed(final @NotNull AnActionEvent e)", "public @Nullable ListPopup createPopup(@NotNull DataContext dataContext, @Nullable ActionGroup extraActions)", "public @NotNull DefaultActionGroup createActionGroup(@Nullable VirtualFile myFile,\n Editor editor,\n Document document,\n byte[] bytes,\n @Nullable @NlsActions.ActionText String clearItemText)", "protected boolean chosen(Document document,\n Editor editor,\n @Nullable VirtualFile virtualFile,\n byte[] bytes,\n @NotNull Charset charset)", "public static boolean changeTo(@NotNull Project project,\n @NotNull Document document,\n Editor editor,\n @NotNull VirtualFile virtualFile,\n @NotNull Charset charset,\n @NotNull EncodingUtil.Magic8 isSafeToConvert, @NotNull EncodingUtil.Magic8 isSafeToReload)" ]
intellij-community/platform/platform-impl/src/com/intellij/openapi/vfs/encoding/ChangeFileEncodingAction.java
297,987
getTypeText
private static @Nullable String getTypeText(@NotNull PsiElement element, @NotNull PsiSubstitutor substitutor, @Nullable PsiElement position) { PsiType type = null; if (element instanceof GrVariable) { type = TypeInferenceHelper.getVariableTypeInContext(position, (GrVariable)element); } else if (element instanceof PsiVariable) { type = ((PsiVariable)element).getType(); } else if (element instanceof PsiMethod) { type = substitutor.substitute(((PsiMethod)element).getReturnType()); } else if (element instanceof GroovyProperty) { type = ((GroovyProperty)element).getPropertyType(); } return type != null ? type.getPresentableText() : null; }
[ 32, 43 ]
private static @Nullable String getTypeText(@NotNull PsiElement element, @NotNull PsiSubstitutor substitutor, @Nullable PsiElement position)
800
public final class GroovyCompletionUtil
[ "public static boolean endsWithExpression(PsiElement statement)", "@TestOnly\n public static void disableSlowCompletionElements(Disposable disposable)", "static boolean isSlowCompletionEnabled()", "@Nullable\n public static PsiElement nearestLeftSibling(PsiElement elem)", "@Nullable\n public static PsiElement nearestLeftLeaf(PsiElement elem)", "public static boolean isNewStatement(PsiElement element, boolean canBeAfterBrace)", "@Nullable\n public static PsiElement getLeafByOffset(int offset, PsiElement element)", "public static boolean isFirstElementAfterPossibleModifiersInVariableDeclaration(PsiElement element, boolean acceptParameter)", "public static boolean asSimpleVariable(PsiElement context)", "public static boolean isInTypeDefinitionBody(PsiElement context)", "public static boolean asVariableInBlock(PsiElement context)", "public static boolean asTypedMethod(PsiElement context)", "public static List<LookupElement> getCompletionVariants(GroovyResolveResult[] candidates,\n boolean afterNew,\n PrefixMatcher matcher,\n PsiElement position)", "public static List<LookupElement> getCompletionVariants(List<? extends GroovyResolveResult> candidates,\n boolean afterNew,\n PrefixMatcher matcher,\n PsiElement position)", "public static List<? extends LookupElement> createLookupElements(@NotNull GroovyResolveResult candidate,\n boolean afterNew,\n @NotNull PrefixMatcher matcher,\n @Nullable PsiElement position)", "private static boolean setterMatches(PrefixMatcher matcher, PsiMethod element, String importedName)", "private static boolean getterMatches(PrefixMatcher matcher, PsiMethod element, String importedName)", "public static LookupElement createClassLookupItem(PsiClass psiClass)", "private static List<? extends LookupElement> generateLookupForImportedElement(GroovyResolveResult resolveResult, String importedName)", "public static LookupElement createLookupElement(PsiNamedElement o)", "public static LookupElementBuilder setupLookupBuilder(@NotNull PsiElement element,\n @NotNull PsiSubstitutor substitutor,\n @NotNull LookupElementBuilder builder,\n @Nullable PsiElement position)", "private static LookupElementBuilder setupLookupBuilder(@NotNull PsiElement element,\n @NotNull LookupElementBuilder builder,\n @Nullable String tailText,\n @Nullable String typeText)", "private static @Nullable String getTailText(@NotNull PsiElement element, @NotNull PsiSubstitutor substitutor)", "private static String getPackageText(PsiClass psiClass)", "private static boolean showSpaceAfterComma(PsiClass element)", "private static @Nullable String getTypeText(@NotNull PsiElement element,\n @NotNull PsiSubstitutor substitutor,\n @Nullable PsiElement position)", "public static boolean hasConstructorParameters(@NotNull PsiClass clazz, @NotNull PsiElement place)", "public static void addImportForItem(PsiFile file, int startOffset, LookupElement item)", "public static int addImportForClass(PsiFile file, int startOffset, int endOffset, PsiClass aClass)", "public static void shortenReference(final PsiFile file, final int offset)", "public static int addRParenth(Editor editor, int oldTail, boolean space_within_cast_parentheses)", "public static boolean skipDefGroovyMethod(GrGdkMethod gdkMethod, PsiSubstitutor substitutor, @Nullable PsiType type)", "public static boolean isWildcardCompletion(PsiElement position)", "static boolean isNewStatementInScript(PsiElement context)", "public static boolean isReferenceElementInNewExpr(PsiElement context)", "static boolean isCodeReferenceElementApplicableToModifierCompletion(PsiElement context)", "static boolean isTypelessParameter(PsiElement context)", "public static boolean isTupleVarNameWithoutTypeDeclared(PsiElement position)", "public static void processVariants(GrReferenceElement referenceElement, PrefixMatcher matcher, CompletionParameters parameters, Consumer<LookupElement> consumer)", "public static boolean isInPossibleClosureParameter(PsiElement position)", "@Nullable\n public static PsiType getQualifierType(@Nullable PsiElement qualifier)", "static boolean canResolveToPackage(@NotNull PsiElement qualifier)" ]
intellij-community/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/completion/GroovyCompletionUtil.java
64,103
configureUiHelper
protected void configureUiHelper(final TreeUIHelper helper) { helper.installTreeSpeedSearch(this); }
[ 15, 32 ]
protected void configureUiHelper(final TreeUIHelper helper)
106
public class SimpleTree extends Tree implements CellEditorListener
[ "@Override\n protected boolean onDoubleClick(@NotNull MouseEvent e)", "@Override\n public void valueChanged(TreeSelectionEvent e)", "@Override\n public void keyPressed(KeyEvent e)", "protected void configureUiHelper(final TreeUIHelper helper)", "public void setPopupGroup(ActionGroup aPopupGroup, String aPlace)", "public SimpleNode getNodeFor(int row)", "public SimpleNode getNodeFor(TreePath aPath)", "public @Nullable TreePath getPathFor(SimpleNode node)", "public @Nullable SimpleNode getSelectedNode()", "@Override\n public boolean isSelectionEmpty()", "public SimpleNode[] getSelectedNodesIfUniform()", "@Override\n protected void paintChildren(Graphics g)", "public void doClick(int row)", "@Override\n public void cancelEditing()", "@Override\n public void editingStopped(ChangeEvent e)", "@Override\n public void editingCanceled(ChangeEvent e)", "public JComponent getEditorComponent()", "@Override\n public boolean isEditing()", "@Override\n public TreePath getEditingPath()", "@Override\n public boolean isPathEditable(TreePath path)", "@Override\n protected boolean paintNodes()", "@Override\n protected void paintComponent(Graphics g)", "@Override\n public void setCellEditor(TreeCellEditor aCellEditor)", "@Override\n public boolean stopEditing()", "@Override\n public void startEditingAtPath(final TreePath path)", "private void startEditing(final TreePath path)", "private void putEditor(TreePath path)", "private void doStopEditing()", "@Override\n public void addSelectionPath(TreePath path)", "@Override\n public void addSelectionPaths(TreePath[] path)", "private boolean isSelected(TreePath path)", "public boolean isMultipleSelection()", "private void handleDoubleClickOrEnter(final TreePath treePath, final InputEvent e)", "protected void invokeContextMenu(final MouseEvent e)", "@Override\n public void mousePressed(MouseEvent e)", "@Override\n public void mouseReleased(MouseEvent e)", "@Override\n public void mouseClicked(MouseEvent e)", "private void invokePopup(final MouseEvent e)", "private void selectPathUnderCursorIfNeeded(final MouseEvent e)", "private boolean insideTreeItemsArea(MouseEvent e)", "private boolean hasSingleSelection()", "public DefaultTreeModel getBuilderModel()", "public NodeRenderer getRenderer()", "public String toString()", "public final void setMinSizeInRows(int rows)", "@Override\n public Dimension getMinimumSize()", "@Override\n public void processKeyEvent(final KeyEvent e)" ]
intellij-community/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleTree.java
233,703
shouldShowDisabledActions
protected boolean shouldShowDisabledActions() { return false; }
[ 18, 43 ]
protected boolean shouldShowDisabledActions()
69
public abstract class ComboBoxAction extends AnAction implements CustomComponentAction
[ "public static @NotNull Icon getArrowIcon(boolean enabled)", "@Override\n public void actionPerformed(@NotNull AnActionEvent e)", "protected @NotNull JBPopup createActionPopup(@NotNull DataContext context, @NotNull JComponent component, @Nullable Runnable disposeCallback)", "protected JBPopup createActionPopup(DefaultActionGroup group, @NotNull DataContext context, @Nullable Runnable disposeCallback)", "@Override\n public @NotNull JComponent createCustomComponent(@NotNull Presentation presentation, @NotNull String place)", "protected boolean isNoWrapping(@NotNull String place)", "protected @NotNull ComboBoxButton createComboBoxButton(@NotNull Presentation presentation)", "public boolean isSmallVariant()", "public void setSmallVariant(boolean smallVariant)", "public void setPopupTitle(@NotNull @NlsContexts.PopupTitle String popupTitle)", "protected boolean shouldShowDisabledActions()", "@Deprecated\n protected @NotNull DefaultActionGroup createPopupActionGroup(JComponent button)", "protected @NotNull DefaultActionGroup createPopupActionGroup(@NotNull JComponent button, @NotNull DataContext dataContext)", "protected int getMaxRows()", "protected int getMinHeight()", "protected int getMinWidth()", "@Override\n public String getUIClassID()", "@Override\n public void mousePressed(final MouseEvent e)", "@Override\n public void mouseDragged(MouseEvent e)", "private void setMargin()", "public void setLabel(@NotNull JLabel label)", "protected void presentationChanged(PropertyChangeEvent event)", "protected boolean performClickOnMousePress()", "@TestOnly\n public @NotNull Presentation getPresentation()", "@Override\n protected void fireActionPerformed(ActionEvent event)", "private void setForcePressed(boolean forcePressed)", "private void releaseForcePressed()", "@Override\n public @Nullable String getToolTipText()", "public void showPopup()", "protected @NotNull JBPopup createPopup(@Nullable Runnable onDispose)", "protected @NotNull DataContext getDataContext()", "@Override\n public void removeNotify()", "@Override\n public void addNotify()", "private void updateTooltipText()", "@Override\n public boolean isPressed()", "@Override\n public boolean isArmed()", "@Override\n public boolean isOpaque()", "@Override\n public Font getFont()", "@Override\n public void setFont(Font font)", "@Override\n protected Graphics getComponentGraphics(Graphics graphics)", "public int getArrowGap()", "protected boolean isArrowVisible(@NotNull Presentation presentation)", "public boolean isArrowVisible()", "public boolean isSmallVariant()", "@Override\n public void updateUI()", "@ApiStatus.Experimental\n protected void doShiftClick()", "protected void doRightClick()", "protected Condition<AnAction> getPreselectCondition()" ]
intellij-community/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java
230,451
indexOf
private int indexOf(int keyCode) { for (int i = 0; i < keys.length; i++) { int key = keys[i]; if (key == keyCode) return i; if (key > keyCode) return -i-1; } return -keys.length - 1; }
[ 12, 19 ]
private int indexOf(int keyCode)
216
final class ArrayBackedFMap implements KeyFMap
[ "@Override\n public @NotNull <V> KeyFMap plus(@NotNull Key<V> key, @NotNull V value)", "@Override\n public int size()", "private int indexOf(int keyCode)", "@Override\n public @NotNull KeyFMap minus(@NotNull Key<?> key)", "@Override\n public <V> V get(@NotNull Key<V> key)", "@Override\n public String toString()", "@Override\n public boolean isEmpty()", "@Override\n public int getValueIdentityHashCode()", "@Override\n public @NotNull Key<?> @NotNull [] getKeys()", "static @NotNull Key<?> @NotNull [] getKeysByIndices(int @NotNull [] indexes)", "@Override\n public int hashCode()", "@Override\n public boolean equals(Object o)", "@Override\n public boolean equalsByReference(@NotNull KeyFMap o)" ]
intellij-community/platform/util/src/com/intellij/util/keyFMap/ArrayBackedFMap.java
208,007
getContextActionId
@Override public String getContextActionId() { return "RunCoverage"; }
[ 26, 44 ]
@Override public String getContextActionId()
78
public class CoverageExecutor extends Executor
[ "@Override\n @NotNull\n public String getStartActionText()", "@NotNull\n @Override\n public String getStartActionText(@NotNull String configurationName)", "@NotNull\n @Override\n public String getToolWindowId()", "@NotNull\n @Override\n public Icon getToolWindowIcon()", "@Override\n @NotNull\n public Icon getIcon()", "@Override\n public Icon getDisabledIcon()", "@Override\n public String getDescription()", "@Override\n @NotNull\n public String getActionName()", "@Override\n @NotNull\n public String getId()", "@Override\n public String getContextActionId()", "@Override\n public String getHelpId()", "@Override\n public boolean isSupportedOnTarget()" ]
intellij-community/plugins/coverage-common/src/com/intellij/coverage/CoverageExecutor.java
43,790
methodCallExpressionsMatch
@Override protected Match methodCallExpressionsMatch(@NotNull PsiMethodCallExpression methodCallExpression1, @NotNull PsiMethodCallExpression methodCallExpression2) { return EXACT_MISMATCH; }
[ 30, 56 ]
@Override protected Match methodCallExpressionsMatch(@NotNull PsiMethodCallExpression methodCallExpression1, @NotNull PsiMethodCallExpression methodCallExpression2)
252
public final class EqualsReplaceableByObjectsCallInspection extends BaseInspection implements CleanupLocalInspectionTool
[ "@Override\n public @NotNull OptPane getOptionsPane()", "@NotNull\n @Override\n protected String buildErrorString(Object... infos)", "@Nullable\n @Override\n protected LocalQuickFix buildFix(Object... infos)", "@Nls\n @NotNull\n @Override\n public String getFamilyName()", "@Override\n protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)", "@Override\n public @NotNull Set<@NotNull JavaFeature> requiredFeatures()", "@Override\n public BaseInspectionVisitor buildVisitor()", "@Override\n public void visitMethodCallExpression(@NotNull PsiMethodCallExpression expression)", "private boolean processNotNullCheck(PsiBinaryExpression expression)", "private boolean processNotNullCondition(@NotNull PsiConditionalExpression expression)", "private boolean registerProblem(@NotNull PsiBinaryExpression expression, PsiExpression rightOperand, boolean equal)", "@NotNull\n private PsiExpression checkEqualityBefore(@NotNull PsiExpression expression, boolean equal, PsiExpression part1, PsiExpression part2)", "private static boolean isEquality(PsiExpression expression, boolean equals, PsiExpression part1, PsiExpression part2)", "private static boolean isNotNullExpressionOrConstant(PsiExpression expression)", "@Nullable\n private static PsiExpression findFinalVariableDefinition(@NotNull PsiReferenceExpression expression)", "private static PsiExpression getArgumentExpression(PsiMethodCallExpression callExpression)", "private static PsiExpression getQualifierExpression(PsiMethodCallExpression expression)", "@Nullable\n static Negated create(@Nullable PsiExpression maybeNegatedExpression)", "@Nullable\n private static NullCheck create(@Nullable PsiExpression maybeNullCheckExpression)", "@Nullable\n private static EqualsCheck create(@Nullable PsiExpression maybeEqualsCheckExpression)", "@Override\n protected Match newExpressionsMatch(@NotNull PsiNewExpression newExpression1,\n @NotNull PsiNewExpression newExpression2)", "@Override\n protected Match methodCallExpressionsMatch(@NotNull PsiMethodCallExpression methodCallExpression1,\n @NotNull PsiMethodCallExpression methodCallExpression2)", "@Override\n protected Match assignmentExpressionsMatch(@NotNull PsiAssignmentExpression assignmentExpression1,\n @NotNull PsiAssignmentExpression assignmentExpression2)", "@Override\n protected Match arrayInitializerExpressionsMatch(@NotNull PsiArrayInitializerExpression arrayInitializerExpression1,\n @NotNull PsiArrayInitializerExpression arrayInitializerExpression2)", "@Override\n protected Match unaryExpressionsMatch(@NotNull PsiUnaryExpression unaryExpression1, @NotNull PsiUnaryExpression unaryExpression2)", "private static boolean isSideEffectUnaryOperator(IElementType tokenType)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/migration/EqualsReplaceableByObjectsCallInspection.java
464,647
findExternalAnnotations
@Override public PsiAnnotation @Nullable [] findExternalAnnotations(final @NotNull PsiModifierListOwner listOwner) { final List<AnnotationData> result = collectExternalAnnotations(listOwner); return result.isEmpty() ? null : ContainerUtil.map2Array(result, PsiAnnotation.EMPTY_ARRAY, data -> data.getAnnotation(this)); }
[ 46, 69 ]
@Override public PsiAnnotation @Nullable [] findExternalAnnotations(final @NotNull PsiModifierListOwner listOwner)
393
public abstract class BaseExternalAnnotationsManager extends ExternalAnnotationsManager
[ "protected static @Nullable String getExternalName(@NotNull PsiModifierListOwner listOwner)", "protected abstract boolean hasAnyAnnotationsRoots()", "@Override\n public boolean hasAnnotationRootsForFile(@NotNull VirtualFile file)", "@Override\n public boolean isExternalAnnotation(@NotNull PsiAnnotation annotation)", "@Override\n public @Nullable PsiAnnotation findExternalAnnotation(final @NotNull PsiModifierListOwner listOwner, final @NotNull String annotationFQN)", "@Override\n public @NotNull List<PsiAnnotation> findExternalAnnotations(@NotNull PsiModifierListOwner listOwner, @NotNull String annotationFQN)", "@Override\n public @Nullable List<PsiAnnotation> findDefaultConstructorExternalAnnotations(@NotNull PsiClass aClass, @NotNull String annotationFQN)", "private @NotNull List<PsiAnnotation> filterAnnotations(@NotNull List<AnnotationData> result, @NotNull String annotationFQN)", "@Override\n public @Nullable List<PsiAnnotation> findDefaultConstructorExternalAnnotations(@NotNull PsiClass aClass)", "@Override\n public boolean isExternalAnnotationWritable(@NotNull PsiModifierListOwner listOwner, final @NotNull String annotationFQN)", "private static AnnotationData findByFQN(@NotNull List<AnnotationData> map, final @NotNull String annotationFQN)", "@Override\n public PsiAnnotation @Nullable [] findExternalAnnotations(final @NotNull PsiModifierListOwner listOwner)", "private @NotNull List<AnnotationData> collectDefaultConstructorExternalAnnotations(@NotNull PsiClass aClass)", "private @NotNull List<AnnotationData> collectExternalAnnotations(@NotNull PsiModifierListOwner listOwner)", "private @NotNull List<AnnotationData> collectExternalAnnotations(@NotNull Object cacheKey,\n @NotNull Supplier<? extends List<AnnotationData>> dataSupplier)", "private @NotNull AnnotationData internAnnotationData(@NotNull AnnotationData data)", "public @NotNull MostlySingularMultiMap<String, AnnotationData> getDataFromFile(@NotNull PsiFile file)", "public static @NotNull MostlySingularMultiMap<String, AnnotationData> loadData(@NotNull VirtualFile virtualFile,\n @NotNull CharSequence fileText,\n @Nullable BaseExternalAnnotationsManager externalAnnotationsManager)", "protected void reportXmlParseError(@NotNull VirtualFile file, @NotNull SAXParseException exception)", "protected void duplicateError(@NotNull VirtualFile virtualFile,\n @NotNull String externalName,\n @NotNull String text)", "private @NotNull String intern(@NotNull String annotationFQN)", "private @NotNull List<AnnotationData> doCollect(@NotNull PsiModifierListOwner listOwner, boolean onlyWritable)", "private @NotNull List<AnnotationData> doCollect(@NotNull String externalName, @NotNull List<? extends PsiFile> annotationsFiles, boolean onlyWritable)", "@Override\n public @Nullable List<PsiFile> findExternalAnnotationsFiles(@NotNull PsiModifierListOwner listOwner)", "private <T> List<PsiFile> findExternalAnnotationsFiles(String packageName, @NotNull T key, @NotNull Function<? super T, ? extends List<VirtualFile>> rootGetter)", "protected abstract @NotNull List<VirtualFile> getExternalAnnotationsRoots(@NotNull VirtualFile libraryFile)", "protected void dropCache()", "private static @NotNull CharSequence escapeAttributes(@NotNull CharSequence invalidXml)", "private static boolean hasInvalidAttribute(@NotNull CharSequence invalidXml)", "@Override\n public void annotateExternally(@NotNull PsiModifierListOwner listOwner,\n @NotNull String annotationFQName,\n @NotNull PsiFile fromFile,\n PsiNameValuePair @Nullable [] value)", "@Override\n public boolean deannotate(@NotNull PsiModifierListOwner listOwner, @NotNull String annotationFQN)", "@Override\n public boolean editExternalAnnotation(@NotNull PsiModifierListOwner listOwner,\n @NotNull String annotationFQN,\n PsiNameValuePair @Nullable [] value)", "@Override\n public @NotNull AnnotationPlace chooseAnnotationsPlaceNoUi(@NotNull PsiElement element)", "@Override\n public @NotNull AnnotationPlace chooseAnnotationsPlace(@NotNull PsiElement element)", "protected void registerExternalAnnotations(@NotNull Object key, @NotNull PsiFile annotationsFile)", "public @NotNull PsiAnnotation getAnnotation(@NotNull BaseExternalAnnotationsManager context)", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()", "@Override\n public String toString()", "private static PsiAnnotation markAsExternalAnnotation(@NotNull PsiAnnotation annotation)", "private @NotNull PsiAnnotation createAnnotationFromText(final @NotNull String text)", "@Override\n public void startElement(String uri, String localName, String qName, Attributes attributes)", "@Override\n public void endElement(String uri, String localName, String qName)", "public @NotNull MostlySingularMultiMap<String, AnnotationData> getResult()" ]
intellij-community/java/java-psi-impl/src/com/intellij/codeInsight/BaseExternalAnnotationsManager.java
451,582
getTargetNotFoundMessage
@Nullable @Override public String getTargetNotFoundMessage() { return RefactoringBundle.message("error.wrong.caret.position.method.or.class.name"); }
[ 38, 62 ]
@Nullable @Override public String getTargetNotFoundMessage()
159
public class JavaChangeSignatureHandler implements ChangeSignatureHandler
[ "@Override\n public void invoke(@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext)", "private static void invokeOnElement(Project project, @Nullable Editor editor, PsiElement element)", "@Override\n public void invoke(@NotNull final Project project, final PsiElement @NotNull [] elements, @Nullable final DataContext dataContext)", "@Nullable\n @Override\n public String getTargetNotFoundMessage()", "private static void invoke(@NotNull PsiMethod method, @NotNull Project project, @Nullable final Editor editor)", "private static void invoke(final PsiClass aClass, Editor editor)", "@Override\n public PsiElement findTargetMember(@NotNull PsiElement element)" ]
intellij-community/java/java-impl-refactorings/src/com/intellij/refactoring/changeSignature/JavaChangeSignatureHandler.java
452,945
getUrlForHtml
private String getUrlForHtml(PsiElement element, PsiElement originalElement) { return doIfNotNull(getDocumentation(element, originalElement), MdnSymbolDocumentation::getUrl); }
[ 15, 28 ]
private String getUrlForHtml(PsiElement element, PsiElement originalElement)
182
public class HtmlDocumentationProvider implements DocumentationProvider
[ "@Override\n public @Nullable @Nls String getQuickNavigateInfo(PsiElement element, PsiElement originalElement)", "@Override\n public List<String> getUrlFor(PsiElement element, PsiElement originalElement)", "@Override\n public @Nls String generateDoc(PsiElement element, PsiElement originalElement)", "@Override\n public PsiElement getDocumentationElementForLookupItem(PsiManager psiManager, Object object, PsiElement element)", "@Override\n public @Nullable PsiElement getCustomDocumentationElement(@NotNull Editor editor,\n @NotNull PsiFile file,\n @Nullable PsiElement contextElement, int targetOffset)", "@Contract(\"null->false\")\n private static boolean checkProvider(@Nullable DocumentationProvider provider)", "@Override\n public PsiElement getDocumentationElementForLink(PsiManager psiManager, String link, PsiElement context)", "private @Nls String generateDocFromStyleOrScript(PsiElement element, PsiElement originalElement)", "private String getUrlForHtml(PsiElement element, PsiElement originalElement)", "private MdnSymbolDocumentation getDocumentation(PsiElement element, PsiElement originalElement)", "private @Nls String generateDocForHtml(PsiElement element, PsiElement originalElement)", "private PsiMetaData findDescriptor(PsiManager psiManager, String text, PsiElement context)", "protected boolean isAttributeContext(PsiElement context)", "protected XmlTag findTagContext(PsiElement context)", "private static @Nullable DocumentationProvider getScriptDocumentationProvider()", "private @Nullable DocumentationProvider getStyleProvider()" ]
intellij-community/xml/impl/src/com/intellij/xml/util/documentation/HtmlDocumentationProvider.java
12,380
asString
@Override public String asString() { return myClassName + AgentPoint.SEPARATOR + myFieldName; }
[ 28, 36 ]
@Override public String asString()
109
public final class CaptureSettingsProvider
[ "@NotNull\n public static Properties getPointsProperties(@Nullable Project project)", "private static List<AgentPoint> getAnnotationPoints(@Nullable Project project)", "public abstract boolean isCapture()", "@Override\n public String toString()", "@Override\n public boolean isCapture()", "@Override\n public boolean isCapture()", "String asString()", "private static KeyProvider param(int idx)", "@Override\n public String asString()", "@Override\n public String asString()" ]
intellij-community/java/debugger/impl/src/com/intellij/debugger/settings/CaptureSettingsProvider.java
440,380
addRangeAfter
@Override public PsiElement addRangeAfter(PsiElement first, PsiElement last, PsiElement anchor) { throw createException(); }
[ 32, 45 ]
@Override public PsiElement addRangeAfter(PsiElement first, PsiElement last, PsiElement anchor)
138
public class PsiUtilCore
[ "@Override\n public @NotNull Project getProject()", "@Override\n public @NotNull Language getLanguage()", "@Override\n public PsiManager getManager()", "@Override\n public PsiElement @NotNull [] getChildren()", "@Override\n public PsiElement getParent()", "@Override\n public @Nullable PsiElement getFirstChild()", "@Override\n public @Nullable PsiElement getLastChild()", "@Override\n public @Nullable PsiElement getNextSibling()", "@Override\n public @Nullable PsiElement getPrevSibling()", "@Override\n public PsiFile getContainingFile()", "@Override\n public TextRange getTextRange()", "@Override\n public int getStartOffsetInParent()", "@Override\n public int getTextLength()", "@Override\n public PsiElement findElementAt(int offset)", "@Override\n public @Nullable PsiReference findReferenceAt(int offset)", "@Override\n public int getTextOffset()", "@Override\n public String getText()", "@Override\n public char @NotNull [] textToCharArray()", "@Override\n public PsiElement getNavigationElement()", "@Override\n public PsiElement getOriginalElement()", "@Override\n public boolean textMatches(@NotNull CharSequence text)", "@Override\n public boolean textMatches(@NotNull PsiElement element)", "@Override\n public boolean textContains(char c)", "@Override\n public void accept(@NotNull PsiElementVisitor visitor)", "@Override\n public void acceptChildren(@NotNull PsiElementVisitor visitor)", "@Override\n public PsiElement copy()", "@Override\n public PsiElement add(@NotNull PsiElement element)", "@Override\n public PsiElement addBefore(@NotNull PsiElement element, PsiElement anchor)", "@Override\n public PsiElement addAfter(@NotNull PsiElement element, PsiElement anchor)", "@Override\n public void checkAdd(@NotNull PsiElement element)", "@Override\n public PsiElement addRange(PsiElement first, PsiElement last)", "@Override\n public PsiElement addRangeBefore(@NotNull PsiElement first, @NotNull PsiElement last, PsiElement anchor)", "@Override\n public PsiElement addRangeAfter(PsiElement first, PsiElement last, PsiElement anchor)", "@Override\n public void delete()", "@Override\n public void checkDelete()", "@Override\n public void deleteChildRange(PsiElement first, PsiElement last)", "@Override\n public PsiElement replace(@NotNull PsiElement newElement)", "@Override\n public boolean isValid()", "@Override\n public boolean isWritable()", "PsiInvalidElementAccessException createException()", "@Override\n public @Nullable PsiReference getReference()", "@Override\n public PsiReference @NotNull [] getReferences()", "@Override\n public <T> T getCopyableUserData(@NotNull Key<T> key)", "@Override\n public <T> void putCopyableUserData(@NotNull Key<T> key, T value)", "@Override\n public boolean processDeclarations(@NotNull PsiScopeProcessor processor,\n @NotNull ResolveState state,\n PsiElement lastParent,\n @NotNull PsiElement place)", "@Override\n public PsiElement getContext()", "@Override\n public boolean isPhysical()", "@Override\n public @NotNull GlobalSearchScope getResolveScope()", "@Override\n public @NotNull SearchScope getUseScope()", "@Override\n public ASTNode getNode()", "@Override\n public <T> T getUserData(@NotNull Key<T> key)", "@Override\n public <T> void putUserData(@NotNull Key<T> key, T value)", "@Override\n public Icon getIcon(int flags)", "@Override\n public boolean isEquivalentTo(PsiElement another)", "@Override\n public String toString()", "public static PsiElement @NotNull [] toPsiElementArray(@NotNull Collection<? extends PsiElement> collection)", "public static Language getNotAnyLanguage(ASTNode node)", "public static @Nullable VirtualFile getVirtualFile(@Nullable PsiElement element)", "public static int compareElementsByPosition(@Nullable PsiElement element1, @Nullable PsiElement element2)", "private static int compareStubPositions(StubElement<?> stub1, StubElement<?> stub2)", "private static int getStubDepth(StubElement<?> stub)", "private static int compareBalancedStubs(StubElement<?> stub1, StubElement<?> stub2)", "public static boolean hasErrorElementChild(@NotNull PsiElement element)", "public static @NotNull PsiElement getElementAtOffset(@NotNull PsiFile file, int offset)", "public static PsiFile getTemplateLanguageFile(@Nullable PsiElement element)", "public static PsiFile @NotNull [] toPsiFileArray(@NotNull Collection<? extends PsiFile> collection)", "public static @NotNull @Unmodifiable List<PsiFile> toPsiFiles(@NotNull PsiManager psiManager, @NotNull Collection<? extends VirtualFile> virtualFiles)", "public static String getName(PsiElement element)", "@NotNull\n public static String getQualifiedNameAfterRename(String qName, @NotNull String newName)", "@NotNull\n public static Language getDialect(@NotNull PsiElement element)", "@NotNull\n protected static Language narrowLanguage(@NotNull Language language, @NotNull Language candidate)", "public static void ensureValid(@NotNull PsiElement element)", "public static @Nullable PsiFileSystemItem findFileSystemItem(@Nullable Project project, @Nullable VirtualFile file)", "public static @NotNull PsiFile getPsiFile(@NotNull Project project, @NotNull VirtualFile file)", "@Deprecated\n public static @Nullable <T extends PsiElement> T getOriginalElement(@NotNull T psiElement, @NotNull Class<? extends T> elementClass)", "public static @NotNull Language findLanguageFromElement(@NotNull PsiElement elt)", "public static @NotNull Language getLanguageAtOffset (@NotNull PsiFile file, int offset)", "public static @NotNull Project getProjectInReadAction(@NotNull PsiElement element)", "@Contract(\"null -> null;!null -> !null\")\n public static IElementType getElementType(@Nullable ASTNode node)", "@Contract(\"null -> null\")\n public static IElementType getElementType(@Nullable PsiElement element)", "@Override\n public FileASTNode getNode()", "@Override\n public PsiDirectory getParent()", "@Override\n public VirtualFile getVirtualFile()", "@Override\n public PsiDirectory getContainingDirectory()", "@Override\n public long getModificationStamp()", "@Override\n public @NotNull PsiFile getOriginalFile()", "@Override\n public @NotNull FileType getFileType()", "@Override\n public PsiFile @NotNull [] getPsiRoots()", "@Override\n public @NotNull FileViewProvider getViewProvider()", "@Override\n public void subtreeChanged()", "@Override\n public boolean isDirectory()", "@Override\n public @NotNull String getName()", "@Override\n public boolean processChildren(@NotNull PsiElementProcessor<? super PsiFileSystemItem> processor)", "@Override\n public @Nullable ItemPresentation getPresentation()", "@Override\n public void navigate(boolean requestFocus)", "@Override\n public boolean canNavigate()", "@Override\n public boolean canNavigateToSource()", "@Override\n public void checkSetName(String name)", "@Override\n public PsiElement setName(@NonNls @NotNull String name)", "@Override\n public String toString()" ]
intellij-community/platform/core-api/src/com/intellij/psi/util/PsiUtilCore.java
226,311
build
@NotNull public CommitInfo build() { return new CommitInfo(this); }
[ 31, 36 ]
@NotNull public CommitInfo build()
81
public final class CommitInfo
[ "public long getRevisionNumber()", "@NotNull\n public Revision getRevision()", "public @NlsSafe String getAuthor()", "public Date getDate()", "public long getRevisionNumber()", "public String getAuthor()", "public Date getDate()", "@NotNull\n public Builder setRevisionNumber(long revisionNumber)", "@NotNull\n public Builder setAuthor(String author)", "@NotNull\n public Builder setDate(Date date)", "@NotNull\n public CommitInfo build()" ]
intellij-community/plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/CommitInfo.java
41,184
isSupportQtDebugging
public boolean isSupportQtDebugging() { return myState.mySupportQtDebugging; }
[ 15, 35 ]
public boolean isSupportQtDebugging()
84
@Service(Service.Level.PROJECT) @State( name = "PyDebuggerOptionsProvider", storages = { @Storage(StoragePathMacros.WORKSPACE_FILE) } ) public final class PyDebuggerOptionsProvider implements PersistentStateComponent<PyDebuggerOptionsProvider.State>
[ "public static PyDebuggerOptionsProvider getInstance(Project project)", "@Override\n public @NotNull State getState()", "@Override\n public void loadState(@NotNull State state)", "public boolean isAttachToSubprocess()", "public void setAttachToSubprocess(boolean attachToSubprocess)", "public boolean isSaveCallSignatures()", "public void setSaveCallSignatures(boolean saveCallSignatures)", "public boolean isSupportGeventDebugging()", "public void setSupportGeventDebugging(boolean supportGeventDebugging)", "public boolean isDropIntoDebuggerOnFailedTest()", "public void setDropIntoDebuggerOnFailedTest(boolean dropIntoDebuggerOnFailedTest)", "public boolean isSupportQtDebugging()", "public void setSupportQtDebugging(boolean supportQtDebugging)", "public String getPyQtBackend()", "public void setPyQtBackend(String backend)", "public String getAttachProcessFilter()", "public void setAttachProcessFilter(String filter)" ]
intellij-community/python/src/com/jetbrains/python/debugger/PyDebuggerOptionsProvider.java
171,003
getActionUpdateThread
@Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.EDT; }
[ 47, 68 ]
@Override public @NotNull ActionUpdateThread getActionUpdateThread()
111
public class ResumeThreadAction extends DebuggerAction
[ "@Override\n public void actionPerformed(@NotNull final AnActionEvent e)", "@Override\n public void update(@NotNull AnActionEvent e)", "@Override\n public @NotNull ActionUpdateThread getActionUpdateThread()" ]
intellij-community/java/debugger/impl/src/com/intellij/debugger/actions/ResumeThreadAction.java
442,408
processRangeMarkers
@Override public boolean processRangeMarkers(@NotNull Processor<? super RangeMarker> processor) { return myDelegate.processRangeMarkers(processor); }
[ 27, 46 ]
@Override public boolean processRangeMarkers(@NotNull Processor<? super RangeMarker> processor)
157
class DocumentWindowImpl extends UserDataHolderBase implements Disposable, DocumentWindow, DocumentEx
[ "@Nullable(\"null means we were unable to calculate\")\n LogicalPosition hostToInjectedInVirtualSpace(@NotNull LogicalPosition hPos)", "@Override\n public int getLineCount()", "@Override\n public int getLineStartOffset(int line)", "private static int countNewLinesIn(CharSequence text, int[] pos, int line)", "@Override\n public int getLineEndOffset(int line)", "@Override\n public @NotNull String getText()", "private @NotNull String calcText()", "@Override\n public @NotNull CharSequence getImmutableCharSequence()", "@Override\n public int getTextLength()", "@Override\n public int getLineNumber(int offset)", "@Override\n public TextRange getHostRange(int hostOffset)", "@Override\n public void insertString(int offset, @NotNull CharSequence s)", "@Override\n public void deleteString(int startOffset, int endOffset)", "@Override\n public @NotNull Collection<@NotNull StringOperation> prepareReplaceString(int startOffset, int endOffset, @NotNull CharSequence s)", "private @NotNull Collection<@NotNull StringOperation> doPrepareReplaceString(int startOffset, int endOffset, CharSequence s)", "@Override\n public void replaceString(int startOffset, int endOffset, @NotNull CharSequence s)", "@Override\n public boolean isWritable()", "@Override\n public long getModificationStamp()", "@Override\n public int getModificationSequence()", "@Override\n public void fireReadOnlyModificationAttempt()", "@Override\n public void addDocumentListener(@NotNull DocumentListener listener)", "@Override\n public void addDocumentListener(@NotNull DocumentListener listener, @NotNull Disposable parentDisposable)", "@Override\n public void removeDocumentListener(@NotNull DocumentListener listener)", "@Override\n public @NotNull RangeMarker createRangeMarker(int startOffset, int endOffset, boolean surviveOnExternalChange)", "@Override\n public void addPropertyChangeListener(@NotNull PropertyChangeListener listener)", "@Override\n public void removePropertyChangeListener(@NotNull PropertyChangeListener listener)", "@Override\n public void setReadOnly(boolean isReadOnly)", "@Override\n public @NotNull RangeMarker createGuardedBlock(int startOffset, int endOffset)", "@Override\n public void removeGuardedBlock(@NotNull RangeMarker block)", "@Override\n public RangeMarker getRangeGuard(int startOffset, int endOffset)", "@Override\n public void startGuardedBlockChecking()", "@Override\n public void stopGuardedBlockChecking()", "@Override\n public void setCyclicBufferSize(int bufferSize)", "@Override\n public void setText(@NotNull CharSequence text)", "@Override\n public boolean isLineModified(int line)", "@Override\n public Segment @NotNull [] getHostRanges()", "@Override\n public @NotNull RangeMarker createRangeMarker(@NotNull TextRange textRange)", "@Override\n public void setStripTrailingSpacesEnabled(boolean isEnabled)", "@Override\n public int getLineSeparatorLength(int line)", "@Override\n public @NotNull LineIterator createLineIterator()", "@Override\n public void setModificationStamp(long modificationStamp)", "@Override\n public void addEditReadOnlyListener(@NotNull EditReadOnlyListener listener)", "@Override\n public void removeEditReadOnlyListener(@NotNull EditReadOnlyListener listener)", "@Override\n public void replaceText(@NotNull CharSequence chars, long newModificationStamp)", "@Override\n public void suppressGuardedExceptions()", "@Override\n public void unSuppressGuardedExceptions()", "@Override\n public boolean isInEventsHandling()", "@Override\n public boolean removeRangeMarker(@NotNull RangeMarkerEx rangeMarker)", "@Override\n public void registerRangeMarker(@NotNull RangeMarkerEx rangeMarker,\n int start,\n int end,\n boolean greedyToLeft,\n boolean greedyToRight,\n int layer)", "@Override\n public @NotNull DocumentEx getDelegate()", "@Override\n public int hostToInjected(int hostOffset)", "@Override\n public int injectedToHost(int offset)", "public int injectedToHost(int injectedOffset, boolean minHostOffset)", "private int injectedToHost(int offset, boolean preferLeftFragment, boolean skipEmptyShreds)", "@Override\n public @NotNull ProperTextRange injectedToHost(@NotNull TextRange injected)", "private @Nullable(\"null means invalid\") ProperTextRange getFixedTextRange(int startOffset)", "private @Nullable(\"null means invalid\") TextRange findNearestTextRange(int startOffset)", "@Override\n public int injectedToHostLine(int line)", "@Override\n public boolean containsRange(int hostStart, int hostEnd)", "private @Nullable TextRange intersectWithEditable(@NotNull TextRange rangeToEdit)", "String @NotNull [] calculateMinEditSequence(String newText)", "private String getRangeText(@NotNull String hostText, int hostNum)", "private void calculateMinEditSequence(String hostText, String newText, String[] result, int i, int j)", "@Override\n public boolean areRangesEqual(@NotNull DocumentWindow other)", "@Override\n public boolean isValid()", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()", "@Override\n public boolean isOneLine()", "@Override\n public void dispose()", "void setShreds(@NotNull Place shreds)", "@NotNull\n Place getShreds()", "@Override\n public boolean processRangeMarkers(@NotNull Processor<? super RangeMarker> processor)", "@Override\n public boolean processRangeMarkersOverlappingWith(int start, int end, @NotNull Processor<? super RangeMarker> processor)", "@Override\n public String toString()" ]
intellij-community/platform/analysis-impl/src/com/intellij/psi/impl/source/tree/injected/DocumentWindowImpl.java
193,069
getPathRelativeToModule
@Nullable private static String getPathRelativeToModule(VirtualFile file, Project project) { final ProjectRootManager rootManager = ProjectRootManager.getInstance(project); final VirtualFile[] contentRoots = rootManager.getContentRootsFromAllModules(); for (VirtualFile otherRoot : contentRoots) { if (VfsUtilCore.isAncestor(otherRoot, file, false)) { return VfsUtilCore.getRelativePath(file, otherRoot, '/'); } } return null; }
[ 34, 57 ]
@Nullable private static String getPathRelativeToModule(VirtualFile file, Project project)
472
public final class EmptyDirectoryInspection extends GlobalInspectionTool
[ "@Override\n public @NotNull OptPane getOptionsPane()", "@Override\n public boolean isGraphNeeded()", "@Override\n public boolean isReadActionNeeded()", "@Override\n public void runInspection(@NotNull AnalysisScope scope,\n @NotNull InspectionManager manager,\n @NotNull GlobalInspectionContext context,\n @NotNull ProblemDescriptionsProcessor processor)", "@Nullable\n private static String getPathRelativeToModule(VirtualFile file, Project project)", "@NotNull\n @Override\n public String getName()", "@NotNull\n @Override\n public String getFamilyName()", "@Override\n public void applyFix(@NotNull Project project, @NotNull CommonProblemDescriptor descriptor)" ]
intellij-community/platform/lang-impl/src/com/intellij/codeInspection/EmptyDirectoryInspection.java
276,536
getCapitalization
public static @NotNull Capitalization getCapitalization(@NotNull PsiModifierListOwner owner) { NlsInfo info = forModifierListOwner(owner); if (info instanceof Localized) { return ((Localized)info).getCapitalization(); } return Capitalization.NotSpecified; }
[ 38, 55 ]
public static @NotNull Capitalization getCapitalization(@NotNull PsiModifierListOwner owner)
281
public abstract class NlsInfo implements RestrictionInfo
[ "public static NlsInfoFactory factory()", "public @NotNull ThreeState getNlsStatus()", "public boolean canBeUsedInLocalizedContext()", "public static @NotNull Localized localized()", "public static @NotNull NonLocalized nonLocalized()", "public static @NotNull NlsInfo forExpression(@NotNull UExpression expression)", "static @NotNull NlsInfo forExpression(@NotNull UExpression expression, boolean allowStringModifications)", "@NotNull\n private static NlsInfo fromEqualityCheck(@NotNull UExpression expression, boolean allowStringModifications)", "private static @NotNull NlsInfo fromVariableReference(UExpression receiver)", "public static @NotNull NlsInfo forType(@NotNull PsiType type)", "public static @NotNull NlsInfo forModifierListOwner(@NotNull PsiModifierListOwner owner)", "public static @NotNull Capitalization getCapitalization(@NotNull PsiModifierListOwner owner)", "@Override\n public @NotNull NlsInfo fromAnnotationOwner(@Nullable PsiAnnotationOwner annotationOwner)", "@Override\n public @NotNull NlsInfo fromModifierListOwner(@NotNull PsiModifierListOwner modifierListOwner)", "private static @NotNull NlsInfo fromAnnotationContext(UElement parent, AnnotationContext context)", "private static @NotNull NlsInfo fromType(PsiType type)", "static @NotNull NlsInfo fromUVariable(@NotNull UVariable owner)", "private static @NotNull NlsInfo fromAnnotationOwner(@Nullable PsiAnnotationOwner owner)", "private static @NotNull NlsInfo computeFromAnnotationOwner(@NotNull PsiAnnotationOwner owner)", "private static @NotNull NlsInfo fromMetaAnnotation(@Nullable PsiClass annotationClass)", "private static @NotNull NlsInfo fromAnnotation(@NotNull PsiAnnotation annotation)", "private static @NotNull NlsInfo fromAnnotation(@NotNull UAnnotation annotation)", "private static @NotNull NlsInfo fromAnnotationInfo(String qualifiedName, Supplier<? extends UExpression> capitalization)", "private static @NotNull NlsInfo fromContainer(@NotNull PsiMember member)", "public @NotNull Capitalization getCapitalization()", "public @NotNull String suggestAnnotation(PsiElement context)", "public @NotNull @NonNls String getPrefix()", "public @NotNull @NonNls String getSuffix()", "private @NotNull Localized withPrefixAndSuffix(@NotNull String prefix, @NotNull String suffix)", "private @NotNull Localized withAnnotation(@Nullable String qualifiedName)", "@Override\n public @NotNull RestrictionInfoKind getKind()", "@Override\n public @NotNull RestrictionInfoKind getKind()", "@Override\n public @NotNull RestrictionInfoKind getKind()", "public @Nullable PsiModifierListOwner getAnnotationCandidate()", "@Override\n public @NotNull RestrictionInfoKind getKind()" ]
intellij-community/plugins/java-i18n/src/com/intellij/codeInspection/i18n/NlsInfo.java
56,032
getPresentation
@Override protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiExpression element) { List<String> names = new ArrayList<>(); for (SmartPsiElementPointer<PsiAnnotationMemberValue> myMemberValuePointer : myMemberValuePointers) { PsiAnnotationMemberValue value = myMemberValuePointer.getElement(); if (value == null) return null; names.add(value.getText()); } return Presentation.of(CommonQuickFixBundle.message("fix.replace.with.x", StringUtil.join(names, " | "))); }
[ 47, 62 ]
@Override protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiExpression element)
561
public final class MagicConstantInspection extends AbstractBaseJavaLocalInspectionTool
[ "@Override\n public @Nls @NotNull String getGroupDisplayName()", "@Override\n public @NotNull String getShortName()", "@Override\n public @NotNull PsiElementVisitor buildVisitor(final @NotNull ProblemsHolder holder,\n boolean isOnTheFly,\n @NotNull LocalInspectionToolSession session)", "@Override\n public void cleanup(@NotNull Project project)", "public static Runnable getAttachAnnotationsJarFix(@NotNull Project project)", "private static Sdk getJDKToAnnotate(@NotNull Project project)", "private static void attachAnnotationsLaterTo(@NotNull Project project, @NotNull Sdk sdk)", "private static void checkExpression(@NotNull PsiExpression expression,\n @NotNull PsiModifierListOwner owner,\n @Nullable PsiType type,\n @NotNull ProblemsHolder holder)", "private static void checkExpression(@NotNull PsiExpression expression,\n @NotNull ProblemsHolder holder,\n AllowedValues allowed)", "private static void checkCall(@NotNull PsiCall methodCall, @NotNull ProblemsHolder holder)", "private static AllowedValues getCalendarGetValues(PsiMethodCallExpression call)", "private static void checkMagicParameterArgument(@NotNull PsiParameter parameter,\n @NotNull PsiExpression argument,\n @NotNull AllowedValues allowedValues,\n @NotNull ProblemsHolder holder)", "private static void registerProblem(@NotNull PsiExpression argument, @NotNull AllowedValues allowedValues, @NotNull ProblemsHolder holder)", "private static @Nullable LocalQuickFix suggestMagicConstant(@NotNull PsiExpression argument,\n @NotNull AllowedValues allowedValues)", "private static Long evaluateLongConstant(@NotNull PsiExpression expression)", "private static boolean isAllowed(final @NotNull PsiExpression argument, final @NotNull PsiElement scope,\n final @NotNull AllowedValues allowedValues,\n final @NotNull PsiManager manager,\n @Nullable Set<PsiExpression> visited)", "private static boolean isGoodExpression(@NotNull PsiExpression argument,\n @NotNull AllowedValues allowedValues,\n @NotNull PsiElement scope,\n @NotNull PsiManager manager,\n @Nullable Set<PsiExpression> visited)", "private static @NotNull PsiExpression getLiteralExpression(@NotNull PsiExpression context, @NotNull PsiManager manager, @NotNull String text)", "private static boolean isOneOf(@NotNull PsiExpression expression, @NotNull AllowedValues allowedValues, @NotNull PsiManager manager)", "static boolean processValuesFlownTo(final @NotNull PsiExpression argument,\n @NotNull PsiElement scope,\n @NotNull PsiManager manager,\n final @NotNull Processor<? super PsiExpression> processor)", "@Override\n public @Nls @NotNull String getFamilyName()", "@Override\n protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiExpression element)", "@Override\n protected void invoke(@NotNull ActionContext context, @NotNull PsiExpression startElement, @NotNull ModPsiUpdater updater)" ]
intellij-community/java/java-impl/src/com/intellij/codeInspection/magicConstant/MagicConstantInspection.java
427,512
getExprType
@Override public VarType getExprType() { return anonymous ? DecompilerContext.getClassProcessor().getMapRootClasses().get(newType.getValue()).anonymousClassType : newType; }
[ 27, 38 ]
@Override public VarType getExprType()
181
public class NewExprent extends Exprent
[ "private static List<Exprent> getDimensions(int arrayDim, ListStack<Exprent> stack)", "@Override\n public VarType getExprType()", "@Override\n public CheckTypesResult checkExprTypeBounds()", "@Override\n public List<Exprent> getAllExprents()", "@Override\n public Exprent copy()", "@Override\n public int getPrecedence()", "@Override\n public TextBuffer toJava(int indent, BytecodeMappingTracer tracer)", "private static boolean probablySyntheticParameter(String className)", "private static String getQualifiedNewInstance(String classname, List<Exprent> lstParams, int indent, BytecodeMappingTracer tracer)", "@Override\n public void replaceExprent(Exprent oldExpr, Exprent newExpr)", "@Override\n public boolean equals(Object o)", "public InvocationExprent getConstructor()", "public void setConstructor(InvocationExprent constructor)", "public List<Exprent> getLstDims()", "public VarType getNewType()", "public List<Exprent> getLstArrayElements()", "public void setLstArrayElements(List<Exprent> lstArrayElements)", "public void setDirectArrayInit(boolean directArrayInit)", "public void setVarArgParam(boolean isVarArgParam)", "public boolean isLambda()", "public boolean isAnonymous()", "public void setAnonymous(boolean anonymous)", "public void setEnumConst(boolean enumConst)" ]
intellij-community/plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/exps/NewExprent.java
77,287
importOrderOfImports
private static void importOrderOfImports(@NotNull Properties uiPreferences, @NotNull JavaCodeStyleSettings javaSettings) { String oderOfImportsValue = uiPreferences.getProperty(OPTION_IMPORT_ORDER); if (oderOfImportsValue != null) { PackageEntryTable importLayoutTable = new PackageEntryTable(); importLayoutTable.addEntry(PackageEntry.ALL_OTHER_STATIC_IMPORTS_ENTRY); String[] chunks = oderOfImportsValue.split(";"); for (String importString : chunks) { if (!importString.trim().isEmpty()) { boolean isStatic = importString.startsWith("#"); importString = StringUtil.trimStart(importString, "#"); importLayoutTable.addEntry(PackageEntry.BLANK_LINE_ENTRY); importLayoutTable.addEntry(new PackageEntry(isStatic, importString, true)); } } if (importLayoutTable.getEntryCount() > 0) { importLayoutTable.addEntry(PackageEntry.BLANK_LINE_ENTRY); importLayoutTable.addEntry(PackageEntry.ALL_OTHER_IMPORTS_ENTRY); javaSettings.getImportLayoutTable().copyFrom(importLayoutTable); } } }
[ 20, 40 ]
private static void importOrderOfImports(@NotNull Properties uiPreferences, @NotNull JavaCodeStyleSettings javaSettings)
1,113
public class EclipseCodeStylePropertiesImporter implements EclipseFormatterOptions
[ "public void importProperties(@NotNull Properties eclipseProperties, @NotNull CodeStyleSettings settings)", "public void importOptimizeImportsSettings(@NotNull Properties uiPreferences, @NotNull CodeStyleSettings settings)", "private static void importOrderOfImports(@NotNull Properties uiPreferences, @NotNull JavaCodeStyleSettings javaSettings)", "private static void importStarImportThresholds(@NotNull Properties uiPreferences, @NotNull JavaCodeStyleSettings javaSettings)", "private static int parseThreshold(@Nullable String s)" ]
intellij-community/plugins/eclipse/src/org/jetbrains/idea/eclipse/importer/EclipseCodeStylePropertiesImporter.java
47,799
getDescriptiveName
@Override public @NotNull String getDescriptiveName(@NotNull PsiElement element) { if (element instanceof PsiNamedElement) { return StringUtil.notNullize(((PsiNamedElement)element).getName(), YAMLBundle.message("find.usages.unnamed")); } if (element instanceof YAMLScalar) { return ((YAMLScalar)element).getTextValue(); } return YAMLBundle.message("find.usages.unnamed"); }
[ 35, 53 ]
@Override public @NotNull String getDescriptiveName(@NotNull PsiElement element)
411
public class YAMLFindUsagesProvider implements FindUsagesProvider
[ "@Override\n public @Nullable WordsScanner getWordsScanner()", "@Override\n public boolean canFindUsagesFor(@NotNull PsiElement psiElement)", "@Override\n public @Nullable String getHelpId(@NotNull PsiElement psiElement)", "@Override\n public @NotNull String getType(@NotNull PsiElement element)", "@Override\n public @NotNull String getDescriptiveName(@NotNull PsiElement element)", "@Override\n public @NotNull String getNodeText(@NotNull PsiElement element, boolean useFullName)" ]
intellij-community/plugins/yaml/src/org/jetbrains/yaml/YAMLFindUsagesProvider.java
48,337
affectModule
private void affectModule(DifferentiateContext context, Utils utils, JvmModule mod) { debug("Affecting module ", mod.getName()); for (NodeSource source : utils.getNodeSources(mod.getReferenceID())) { context.affectNodeSource(source); debug("Affected source ", source); } }
[ 13, 25 ]
private void affectModule(DifferentiateContext context, Utils utils, JvmModule mod)
298
public final class JavaDifferentiateStrategy extends JvmDifferentiateStrategyImpl
[ "@Override\n public boolean isIncremental(DifferentiateContext context, Node<?, ?> affectedNode)", "@Override\n public boolean processRemovedClass(DifferentiateContext context, JvmClass removedClass, Utils future, Utils present)", "@Override\n public boolean processAddedClasses(DifferentiateContext context, Iterable<JvmClass> addedClasses, Utils future, Utils present)", "@Override\n public boolean processChangedClass(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Utils future, Utils present)", "@Override\n public boolean processChangedMethods(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> clsChange, Iterable<Difference.Change<JvmMethod, JvmMethod.Diff>> methodChanges, Utils future, Utils present)", "@Override\n public boolean processRemovedMethods(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Iterable<JvmMethod> removed, Utils future, Utils present)", "@Override\n public boolean processAddedMethods(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Iterable<JvmMethod> added, Utils future, Utils present)", "@Override\n public boolean processAddedFields(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Iterable<JvmField> added, Utils future, Utils present)", "@Override\n public boolean processAddedField(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, JvmField addedField, Utils future, Utils present)", "@Override\n public boolean processRemovedFields(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, Iterable<JvmField> removed, Utils future, Utils present)", "@Override\n public boolean processRemovedField(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> change, JvmField removedField, Utils future, Utils present)", "@Override\n public boolean processChangedFields(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> chng, Iterable<Difference.Change<JvmField, JvmField.Diff>> fieldChanges, Utils future, Utils present)", "@Override\n public boolean processChangedField(DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> clsChange, Difference.Change<JvmField, JvmField.Diff> fieldChange, Utils future, Utils present)", "@Override\n public boolean processAddedModule(DifferentiateContext context, JvmModule addedModule, Utils future, Utils present)", "@Override\n public boolean processRemovedModule(DifferentiateContext context, JvmModule removedModule, Utils future, Utils present)", "@Override\n public boolean processChangedModule(DifferentiateContext context, Difference.Change<JvmModule, JvmModule.Diff> change, Utils future, Utils present)", "private boolean affectOnNonIncrementalChange(DifferentiateContext context, JvmNodeReferenceID owner, Proto proto, Utils utils)", "private void affectModule(DifferentiateContext context, Utils utils, JvmModule mod)", "public void affectDependentModules(DifferentiateContext context, Utils utils, JvmModule fromModule, boolean checkTransitive, @Nullable Predicate<Node<?, ?>> constraint)" ]
intellij-community/jps/jps-builders/src/org/jetbrains/jps/dependency/java/JavaDifferentiateStrategy.java
2,558
floatingPointOperationIsPointless
private boolean floatingPointOperationIsPointless(IElementType type, PsiExpression[] expressions) { if (expressions.length != 2) return false; if (type.equals(JavaTokenType.MINUS)) { return areExpressionsIdenticalWithoutSideEffects(expressions[0], expressions[1]); } if (type.equals(JavaTokenType.DIV) || type.equals(JavaTokenType.PERC)) { return areExpressionsIdenticalWithoutSideEffects(expressions[0], expressions[1]) && !isZero(expressions[0]) || (type.equals(JavaTokenType.DIV) && isOne(expressions[1])); } if (type.equals(JavaTokenType.ASTERISK)) { return (isOne(expressions[0]) || isOne(expressions[1])) && Objects.requireNonNull(expressions[0].getType()).equals(expressions[1].getType()); } return false; }
[ 16, 49 ]
private boolean floatingPointOperationIsPointless(IElementType type, PsiExpression[] expressions)
820
public final class PointlessArithmeticExpressionInspection extends BaseInspection implements CleanupLocalInspectionTool
[ "@Override\n public @NotNull OptPane getOptionsPane()", "@Override\n public boolean isEnabledByDefault()", "@Override\n @NotNull\n public String buildErrorString(Object... infos)", "@NonNls\n String calculateReplacementExpression(PsiPolyadicExpression expression, @Nullable CommentTracker ct)", "@NotNull\n List<PsiExpression> collectSalientOperands(PsiExpression[] operands, IElementType tokenType, PsiType type)", "private static @NotNull @NonNls String numberAsText(int num, PsiType type)", "@Override\n public LocalQuickFix buildFix(Object... infos)", "@Override\n @NotNull\n public String getFamilyName()", "@Override\n protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)", "@Override\n public BaseInspectionVisitor buildVisitor()", "@Override\n public void visitPolyadicExpression(@NotNull PsiPolyadicExpression expression)", "private boolean floatingPointOperationIsPointless(IElementType type, PsiExpression[] expressions)", "private boolean subtractionExpressionIsPointless(PsiExpression[] expressions)", "private boolean additionExpressionIsPointless(PsiExpression[] expressions)", "private boolean multiplyExpressionIsPointless(PsiExpression[] expressions)", "private boolean divideExpressionIsPointless(PsiExpression[] expressions)", "private static boolean areExpressionsIdenticalWithoutSideEffects(PsiExpression expression1, PsiExpression expression2)", "boolean isZero(PsiExpression expression)", "boolean isOne(PsiExpression expression)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/numeric/PointlessArithmeticExpressionInspection.java
463,065
deserializeMe
@Override public NoteNode deserializeMe(Project project, String ois) throws IOException { final List<String> strings = StringUtil.split(ois, "<>", true); if (strings.size() == 2) { return new NoteNode(StringUtil.unescapeXmlEntities(strings.get(0)), Boolean.parseBoolean(strings.get(1))); } return null; }
[ 28, 41 ]
@Override public NoteNode deserializeMe(Project project, String ois)
330
@Deprecated(forRemoval = true) public class NoteSerializable implements WorkingSetSerializable<NoteNode, NoteNode>
[ "@Override\n public String getId()", "@Override\n public int getVersion()", "@Override\n public void serializeMe(NoteNode t, StringBuilder oos)", "@Override\n public NoteNode deserializeMe(Project project, String ois)", "@Override\n public NoteNode deserializeMeInvalid(Project project, String ois)" ]
intellij-community/platform/lang-impl/src/com/intellij/ide/favoritesTreeView/NoteSerializable.java
279,042
getErrorBackground
protected static Color getErrorBackground() { return ERROR_BACKGROUND; }
[ 23, 41 ]
protected static Color getErrorBackground()
78
public abstract class BaseControl<Bound extends JComponent, T> extends DomUIControl implements Highlightable
[ "private void checkInitialized()", "protected JComponent getHighlightedComponent(Bound component)", "protected final Color getDefaultBackground()", "protected final Color getDefaultForeground()", "protected static Color getErrorBackground()", "protected static Color getWarningBackground()", "protected static Color getErrorForeground()", "private void initialize(final Bound boundComponent)", "protected @Nullable JComponent getComponentToListenFocusLost(Bound component)", "protected abstract Bound createMainComponent(Bound boundedComponent)", "@Override\n public void bind(JComponent component)", "@Override\n public void addCommitListener(CommitListener listener)", "@Override\n public void removeCommitListener(CommitListener listener)", "@Override\n public final DomElement getDomElement()", "public final DomWrapper<T> getDomWrapper()", "@Override\n public final Bound getComponent()", "@Override\n public void dispose()", "@Override\n public final void commit()", "protected final boolean isValid()", "private static boolean valuesAreEqual(final Object valueInXml, final Object valueInControl)", "private static boolean equalModuloTrim(final Object valueInXml, final Object valueInControl)", "@Override\n public final void reset()", "@Override\n public void updateHighlighting()", "protected void updateComponent()", "protected void doReset()", "protected boolean isCommitted()", "private boolean valuesDiffer()", "private void setValueToXml(final T value)", "protected void doCommit(final T value)", "public final Project getProject()", "private T getValueFromXml()", "@Override\n public boolean canNavigate(DomElement element)", "@Override\n public void navigate(DomElement element)", "protected abstract @Nullable T getValue()", "protected abstract void setValue(T value)" ]
intellij-community/xml/dom-openapi/src/com/intellij/util/xml/ui/BaseControl.java
19,299
getLibrary
@Override public Library getLibrary() { return null; }
[ 27, 37 ]
@Override public Library getLibrary()
62
public class SingleRootClasspathElement implements SimpleClasspathElement
[ "@Override\n public String getPresentableName()", "@Override\n public Library getLibrary()", "@Override\n public String getLibraryName()", "@Override\n public void serialize(Element element)", "@Override\n public List<String> getClassesRootUrls()", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()" ]
intellij-community/platform/analysis-impl/src/com/intellij/util/ui/classpath/SingleRootClasspathElement.java
192,242
getComponentGraphics
@Override protected Graphics getComponentGraphics(Graphics graphics) { return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics)); }
[ 31, 51 ]
@Override protected Graphics getComponentGraphics(Graphics graphics)
170
public class JBTerminalWidget extends JediTermWidget implements Disposable, DataProvider
[ "@Override\n public Component getDefaultComponent(Container aContainer)", "private @Nullable LinkResult runFilters(@NotNull Project project, @NotNull String line)", "private @Nullable LinkResultItem convertResultItem(@NotNull Project project, @NotNull Filter.ResultItem item)", "private @NotNull LinkInfo convertInfo(@NotNull Project project, @NotNull HyperlinkInfo info)", "public JBTerminalWidgetListener getListener()", "public void setListener(JBTerminalWidgetListener listener)", "public @NotNull Project getProject()", "@Override\n protected @NotNull TerminalExecutorServiceManager createExecutorServiceManager()", "@Override\n protected JBTerminalPanel createTerminalPanel(@NotNull SettingsProvider settingsProvider,\n @NotNull StyleState styleState,\n @NotNull TerminalTextBuffer textBuffer)", "@Override\n public @NotNull JBTerminalPanel getTerminalPanel()", "@Override\n public void setTtyConnector(@NotNull TtyConnector ttyConnector)", "public @Nls @Nullable String getDefaultSessionName(@NotNull TtyConnector connector)", "@Override\n protected Graphics getComponentGraphics(Graphics graphics)", "@Override\n protected JScrollBar createScrollBar()", "public int getFontSize()", "public float getFontSize2D()", "public void setFontSize(int fontSize)", "public void setFontSize(float fontSize)", "public void resetFontSize()", "public @Nullable ProcessTtyConnector getProcessTtyConnector()", "static boolean isTerminalToolWindow(@Nullable ToolWindow toolWindow)", "@Override\n public void dispose()", "@Override\n protected @NotNull JediTermSearchComponent createSearchComponent()", "public void addMessageFilter(@NotNull Filter filter)", "public void start(TtyConnector connector)", "public @NotNull JBTerminalSystemSettingsProviderBase getSettingsProvider()", "public void notifyStarted()", "@Override\n public @Nullable Object getData(@NotNull String dataId)", "static @Nullable String getSelectedText(@NotNull TerminalPanel terminalPanel)", "public @NotNull String getText()", "public @Nullable String getSelectedText()", "static @NotNull String getText(@NotNull TerminalPanel terminalPanel)", "public void writePlainMessage(@NotNull @Nls String message)", "public @NotNull TerminalTitle getTerminalTitle()", "protected void executeCommand(@NotNull String shellCommand)", "protected @Nullable List<String> getShellCommand()", "protected void setShellCommand(@Nullable List<String> command)", "public @NotNull TerminalWidget asNewWidget()", "public static @Nullable JBTerminalWidget asJediTermWidget(@NotNull TerminalWidget widget)", "private @NotNull JBTerminalWidget widget()", "@Override\n public @NotNull JComponent getComponent()", "@Override\n public JComponent getPreferredFocusableComponent()", "@Override\n public @NotNull TerminalTitle getTerminalTitle()", "@Override\n public void connectToTty(@NotNull TtyConnector ttyConnector, @NotNull TermSize initialTermSize)", "@Override\n public @Nullable TermSize getTermSize()", "@Override\n public void writePlainMessage(@NotNull @Nls String message)", "@Override\n public void setCursorVisible(boolean visible)", "@Override\n public void dispose()", "@Override\n public @NotNull TtyConnectorAccessor getTtyConnectorAccessor()", "@Override\n public boolean hasFocus()", "@Override\n public void requestFocus()", "@Override\n public void addTerminationCallback(@NotNull Runnable onTerminated, @NotNull Disposable parentDisposable)", "@Override\n public void addNotification(@NotNull JComponent notificationComponent, @NotNull Disposable disposable)", "@Override\n public void sendCommandToExecute(@NotNull String shellCommand)", "@Nullable\n @Override\n public List<String> getShellCommand()", "@Override\n public void setShellCommand(@Nullable List<String> command)" ]
intellij-community/platform/execution-impl/src/com/intellij/terminal/JBTerminalWidget.java
317,343
getExtendsList
@Override public @Nullable PsiReferenceList getExtendsList() { return null; }
[ 46, 60 ]
@Override public @Nullable PsiReferenceList getExtendsList()
85
public class PsiJShellRootClassImpl extends ASTWrapperPsiElement implements PsiJShellRootClass
[ "@Override\n public PsiJShellImportHolder[] getSnippets()", "@Override\n public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place)", "@Override\n public @NotNull String getName()", "@Override\n public @Nullable String getQualifiedName()", "@Override\n public boolean isInterface()", "@Override\n public boolean isAnnotationType()", "@Override\n public boolean isEnum()", "@Override\n public @Nullable PsiReferenceList getExtendsList()", "@Override\n public @Nullable PsiReferenceList getImplementsList()", "@Override\n public PsiClassType @NotNull [] getExtendsListTypes()", "@Override\n public PsiClassType @NotNull [] getImplementsListTypes()", "@Override\n public @Nullable PsiClass getSuperClass()", "@Override\n public PsiClass @NotNull [] getInterfaces()", "@Override\n public PsiClass @NotNull [] getSupers()", "@Override\n public PsiClassType @NotNull [] getSuperTypes()", "@Override\n public PsiField @NotNull [] getFields()", "@Override\n public PsiMethod @NotNull [] getMethods()", "@Override\n public PsiMethod @NotNull [] getConstructors()", "@Override\n public PsiClass @NotNull [] getInnerClasses()", "@Override\n public PsiClassInitializer @NotNull [] getInitializers()", "@Override\n public PsiField @NotNull [] getAllFields()", "@Override\n public PsiMethod @NotNull [] getAllMethods()", "@Override\n public PsiClass @NotNull [] getAllInnerClasses()", "@Override\n public @Nullable PsiField findFieldByName(String name, boolean checkBases)", "@Override\n public @Nullable PsiMethod findMethodBySignature(@NotNull PsiMethod patternMethod, boolean checkBases)", "@Override\n public PsiMethod @NotNull [] findMethodsBySignature(@NotNull PsiMethod patternMethod, boolean checkBases)", "@Override\n public PsiMethod @NotNull [] findMethodsByName(String name, boolean checkBases)", "@Override\n public @NotNull List<Pair<PsiMethod, PsiSubstitutor>> findMethodsAndTheirSubstitutorsByName(@NotNull String name, boolean checkBases)", "@Override\n public @NotNull List<Pair<PsiMethod, PsiSubstitutor>> getAllMethodsAndTheirSubstitutors()", "@Override\n public @Nullable PsiClass findInnerClassByName(String name, boolean checkBases)", "@Override\n public @Nullable PsiIdentifier getNameIdentifier()", "@Override\n public PsiElement getScope()", "@Override\n public boolean isInheritor(@NotNull PsiClass baseClass, boolean checkDeep)", "@Override\n public boolean isInheritorDeep(@NotNull PsiClass baseClass, @Nullable PsiClass classToByPass)", "@Override\n public @Nullable PsiClass getContainingClass()", "@Override\n public @NotNull Collection<HierarchicalMethodSignature> getVisibleSignatures()", "@Override\n public PsiElement setName(@NotNull String name)", "@Override\n public boolean isDeprecated()", "@Override\n public @Nullable PsiDocComment getDocComment()", "@Override\n public boolean hasTypeParameters()", "@Override\n public @Nullable PsiTypeParameterList getTypeParameterList()", "@Override\n public PsiTypeParameter @NotNull [] getTypeParameters()", "@Override\n public @Nullable PsiModifierList getModifierList()", "@Override\n public boolean hasModifierProperty(@NotNull String name)", "@Override\n public @Nullable PsiJavaToken getLBrace()", "@Override\n public @Nullable PsiJavaToken getRBrace()", "private <T extends PsiElement> T @NotNull [] findChildren(Class<T> memberClass, T[] emptyArray)" ]
intellij-community/java/java-psi-impl/src/com/intellij/psi/impl/source/PsiJShellRootClassImpl.java
447,381
createTwosideAnnotationsLoader
@Nullable private static FileAnnotationLoader createTwosideAnnotationsLoader(@NotNull Project project, @NotNull DiffRequest request, @NotNull Side side) { Change change = request.getUserData(ChangeDiffRequestProducer.CHANGE_KEY); if (change != null) { ContentRevision revision = side.select(change.getBeforeRevision(), change.getAfterRevision()); if (revision != null) { AbstractVcs vcs = ChangesUtil.getVcsForChange(change, project); if (revision instanceof CurrentContentRevision) { VirtualFile file = ((CurrentContentRevision)revision).getVirtualFile(); FileAnnotationLoader loader = doCreateAnnotationsLoader(project, vcs, file); if (loader != null) return loader; } else { FileAnnotationLoader loader = doCreateAnnotationsLoader(vcs, revision.getFile(), revision.getRevisionNumber()); if (loader != null) return loader; } } } if (request instanceof ContentDiffRequest requestEx) { if (requestEx.getContents().size() == 2) { DiffContent content = side.select(requestEx.getContents()); return createAnnotationsLoader(project, content); } } return null; }
[ 48, 78 ]
@Nullable private static FileAnnotationLoader createTwosideAnnotationsLoader(@NotNull Project project, @NotNull DiffRequest request, @NotNull Side side)
1,362
public class AnnotateDiffViewerAction
[ "@Nullable\n @SuppressWarnings(\"unchecked\")\n private static ViewerAnnotator getAnnotator(@NotNull DiffViewerBase viewer, @NotNull Editor editor)", "@Nullable\n private static EventData collectEventData(@NotNull AnActionEvent e)", "@Nullable\n private static DiffViewerBase getViewer(@NotNull AnActionEvent e)", "private static boolean isEnabled(@NotNull AnActionEvent e)", "private static boolean isSuspended(@NotNull AnActionEvent e)", "private static boolean isAnnotated(@NotNull AnActionEvent e)", "private static void perform(AnActionEvent e, boolean selected)", "private static void doAnnotate(@NotNull final ViewerAnnotator annotator)", "@Nullable\n private static FileAnnotationLoader createThreesideAnnotationsLoader(@NotNull Project project,\n @NotNull DiffRequest request,\n @NotNull ThreeSide side)", "@Nullable\n private static FileAnnotationLoader createTwosideAnnotationsLoader(@NotNull Project project,\n @NotNull DiffRequest request,\n @NotNull Side side)", "@Nullable\n private static FileAnnotationLoader createAnnotationsLoader(@NotNull Project project, @NotNull DiffContent content)", "@Nullable\n private static FileAnnotationLoader doCreateAnnotationsLoader(@NotNull Project project,\n @Nullable AbstractVcs vcs,\n @Nullable final VirtualFile file)", "@Nullable\n private static FileAnnotationLoader doCreateAnnotationsLoader(@Nullable AbstractVcs vcs,\n @Nullable final FilePath path,\n @Nullable final VcsRevisionNumber revisionNumber)", "@Override\n public void onViewerCreated(@NotNull DiffViewer diffViewer, @NotNull DiffContext context, @NotNull DiffRequest request)", "@Override\n @SuppressWarnings(\"unchecked\")\n public void onInit()", "@Override\n @SuppressWarnings(\"unchecked\")\n public void onDispose()", "private static void showNotification(@NotNull DiffViewerBase viewer, @NotNull Notification notification)", "@Override\n @NotNull\n public Class<TwosideTextDiffViewer> getViewerClass()", "@Override\n @Nullable\n public Side getCurrentSide(@NotNull TwosideTextDiffViewer viewer, @NotNull Editor editor)", "@Override\n public boolean isAnnotationShown(@NotNull TwosideTextDiffViewer viewer, @NotNull Side side)", "@Override\n public void showAnnotation(@NotNull TwosideTextDiffViewer viewer, @NotNull Side side, @NotNull AnnotationData data)", "@Override\n public void hideAnnotation(@NotNull TwosideTextDiffViewer viewer, @NotNull Side side)", "@Override\n @NotNull\n public Class<OnesideTextDiffViewer> getViewerClass()", "@Override\n @Nullable\n public Side getCurrentSide(@NotNull OnesideTextDiffViewer viewer, @NotNull Editor editor)", "@Override\n public boolean isAnnotationShown(@NotNull OnesideTextDiffViewer viewer, @NotNull Side side)", "@Override\n public void showAnnotation(@NotNull OnesideTextDiffViewer viewer, @NotNull Side side, @NotNull AnnotationData data)", "@Override\n public void hideAnnotation(@NotNull OnesideTextDiffViewer viewer, @NotNull Side side)", "@Override\n @NotNull\n public Class<UnifiedDiffViewer> getViewerClass()", "@Override\n @Nullable\n public Side getCurrentSide(@NotNull UnifiedDiffViewer viewer, @NotNull Editor editor)", "@Override\n public boolean isAnnotationShown(@NotNull UnifiedDiffViewer viewer, @NotNull Side side)", "@Override\n public void showAnnotation(@NotNull UnifiedDiffViewer viewer, @NotNull Side side, @NotNull AnnotationData data)", "@Override\n public void hideAnnotation(@NotNull UnifiedDiffViewer viewer, @NotNull Side side)", "@Override\n public int getLineNumber(int currentNumber)", "@Override\n public int getLineNumber(int currentNumber, boolean approximate)", "@Override\n public boolean isLineChanged(int currentNumber)", "@Override\n public boolean isRangeChanged(int start, int end)", "@Override\n public int getLineCount()", "@Override\n @NotNull\n public Class<? extends ThreesideTextDiffViewerEx> getViewerClass()", "@Override\n @Nullable\n public ThreeSide getCurrentSide(@NotNull ThreesideTextDiffViewerEx viewer, @NotNull Editor editor)", "@Override\n public boolean isAnnotationShown(@NotNull ThreesideTextDiffViewerEx viewer, @NotNull ThreeSide side)", "@Override\n public void showAnnotation(@NotNull ThreesideTextDiffViewerEx viewer, @NotNull ThreeSide side, @NotNull AnnotationData data)", "@Override\n public void hideAnnotation(@NotNull ThreesideTextDiffViewerEx viewer, @NotNull ThreeSide side)", "@Override\n @NotNull\n public Class<? extends ThreesideTextDiffViewerEx> getViewerClass()", "@Nullable\n @Override\n public ViewerAnnotator createAnnotator(@NotNull ThreesideTextDiffViewerEx viewer, @NotNull ThreeSide side)", "@Nullable\n public abstract Side getCurrentSide(@NotNull T viewer, @NotNull Editor editor)", "public abstract boolean isAnnotationShown(@NotNull T viewer, @NotNull Side side)", "public abstract void showAnnotation(@NotNull T viewer, @NotNull Side side, @NotNull AnnotationData data)", "public abstract void hideAnnotation(@NotNull T viewer, @NotNull Side side)", "@Override\n @Nullable\n public ViewerAnnotator createAnnotator(@NotNull T viewer, @NotNull Editor editor)", "@Override\n public void showRememberedAnnotations(@NotNull T viewer)", "@Override\n public void rememberShownAnnotations(@NotNull T viewer)", "@Nullable\n public ViewerAnnotator createAnnotator(@NotNull T viewer, @NotNull Side side)", "@Nullable\n public abstract ThreeSide getCurrentSide(@NotNull T viewer, @NotNull Editor editor)", "public abstract boolean isAnnotationShown(@NotNull T viewer, @NotNull ThreeSide side)", "public abstract void showAnnotation(@NotNull T viewer, @NotNull ThreeSide side, @NotNull AnnotationData data)", "public abstract void hideAnnotation(@NotNull T viewer, @NotNull ThreeSide side)", "@Override\n @Nullable\n public ViewerAnnotator createAnnotator(@NotNull T viewer, @NotNull Editor editor)", "@Override\n public void showRememberedAnnotations(@NotNull T viewer)", "@Override\n public void rememberShownAnnotations(@NotNull T viewer)", "@Nullable\n public ViewerAnnotator createAnnotator(@NotNull T viewer, @NotNull ThreeSide side)", "@NotNull\n public abstract Class<? extends T> getViewerClass()", "@Nullable\n public abstract ViewerAnnotator createAnnotator(@NotNull T viewer, @NotNull Editor editor)", "public abstract void showRememberedAnnotations(@NotNull T viewer)", "public abstract void rememberShownAnnotations(@NotNull T viewer)", "@NotNull\n public abstract DiffViewerBase getViewer()", "public abstract boolean isAnnotationShown()", "public abstract void showAnnotation(@NotNull AnnotationData data)", "public abstract void hideAnnotation()", "@Nullable\n public abstract FileAnnotationLoader createAnnotationsLoader()", "@NotNull\n public abstract BackgroundableActionLock getBackgroundableLock()", "@Nullable\n public VcsException getException()", "@Nullable\n public AnnotationData getResult()", "public void run()", "protected abstract FileAnnotation compute()", "@Override\n public boolean isEnabled(AnActionEvent e)", "@Override\n public boolean isSuspended(@NotNull AnActionEvent e)", "@Override\n public boolean isAnnotated(AnActionEvent e)", "@Override\n public void perform(@NotNull AnActionEvent e, boolean selected)" ]
intellij-community/platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateDiffViewerAction.java
201,054
checkArrayItems
protected boolean checkArrayItems(@NotNull JsonValueAdapter array, final @NotNull List<JsonValueAdapter> list, final JsonSchemaObject schema, JsonValidationHost consumer, JsonComplianceCheckerOptions options) { if (options.shouldStopValidationAfterAnyErrorFound()) { return validateUniqueItems(array, list, schema, consumer, options) && validateAgainstContainsSchema(array, list, schema, consumer, options) && validateIndividualItems(list, schema, consumer, options) && validateArrayLength(array, list, schema, consumer, options) && validateArrayLengthHeuristically(array, list, schema, consumer, options); } else { return validateUniqueItems(array, list, schema, consumer, options) & validateAgainstContainsSchema(array, list, schema, consumer, options) & validateIndividualItems(list, schema, consumer, options) & validateArrayLength(array, list, schema, consumer, options) & validateArrayLengthHeuristically(array, list, schema, consumer, options); } }
[ 18, 33 ]
protected boolean checkArrayItems(@NotNull JsonValueAdapter array, final @NotNull List<JsonValueAdapter> list, final JsonSchemaObject schema, JsonValidationHost consumer, JsonComplianceCheckerOptions options)
1,253
public class ArrayValidation implements JsonSchemaValidation
[ "@Override\n public boolean validate(@NotNull JsonValueAdapter propValue,\n @NotNull JsonSchemaObject schema,\n @Nullable JsonSchemaType schemaType,\n @NotNull JsonValidationHost consumer,\n @NotNull JsonComplianceCheckerOptions options)", "private boolean checkArray(JsonValueAdapter value,\n JsonSchemaObject schema,\n JsonValidationHost consumer,\n JsonComplianceCheckerOptions options)", "protected boolean checkArrayItems(@NotNull JsonValueAdapter array,\n final @NotNull List<JsonValueAdapter> list,\n final JsonSchemaObject schema,\n JsonValidationHost consumer,\n JsonComplianceCheckerOptions options)", "protected boolean validateIndividualItems(@NotNull List<JsonValueAdapter> list,\n JsonSchemaObject schema,\n JsonValidationHost consumer,\n JsonComplianceCheckerOptions options)", "protected static boolean validateArrayLengthHeuristically(@NotNull JsonValueAdapter array,\n @NotNull List<JsonValueAdapter> list,\n JsonSchemaObject schema,\n JsonValidationHost consumer,\n JsonComplianceCheckerOptions options)", "protected static boolean validateArrayLength(@NotNull JsonValueAdapter array,\n @NotNull List<JsonValueAdapter> list,\n JsonSchemaObject schema,\n JsonValidationHost consumer, JsonComplianceCheckerOptions options)", "protected static boolean validateAgainstContainsSchema(@NotNull JsonValueAdapter array,\n @NotNull List<JsonValueAdapter> list,\n JsonSchemaObject schema,\n JsonValidationHost consumer,\n JsonComplianceCheckerOptions options)", "protected static boolean validateUniqueItems(@NotNull JsonValueAdapter array,\n @NotNull List<JsonValueAdapter> list,\n JsonSchemaObject schema,\n JsonValidationHost consumer,\n @NotNull JsonComplianceCheckerOptions options)" ]
intellij-community/json/src/com/jetbrains/jsonSchema/impl/validations/ArrayValidation.java
688
tryCollapseIntoCountingLoop
private String tryCollapseIntoCountingLoop(String varName) { if (!PsiTypes.intType().equals(myType) && !PsiTypes.longType().equals(myType)) return null; Long start = null; Long step = null; Long last = null; for (PsiExpression element : myLoopElements) { if (!(element instanceof PsiLiteralExpression)) return null; Object value = ((PsiLiteralExpression)element).getValue(); if (!(value instanceof Integer) && !(value instanceof Long)) return null; long cur = ((Number)value).longValue(); if (start == null) { start = cur; } else if (step == null) { step = cur - start; if (step == 0) return null; } else if (cur - last != step || (step > 0 && cur < last) || (step < 0 && cur > last)) { return null; } last = cur; } if (start == null || step == null) return null; // Prefer for(int x : new int[] {12, 17}) over for(int x = 12; x <= 17; x+= 5) if (myLoopElements.size() == 2 && step != 1L && step != -1L) return null; PsiElement parent = myStatements.get(0).getParent(); boolean mustBeEffectivelyFinal = myExpressionsToReplace.stream() .map(ref -> PsiTreeUtil.getParentOfType(ref, PsiClass.class, PsiLambdaExpression.class)) .anyMatch(ctx -> ctx != null && PsiTreeUtil.isAncestor(parent, ctx, false)); if (mustBeEffectivelyFinal) return null; String suffix = PsiTypes.longType().equals(myType) ? "L" : ""; String initial = myType.getCanonicalText() + " " + varName + "=" + start + suffix; String condition = varName + (step == 1 && last != (PsiTypes.longType().equals(myType) ? Long.MAX_VALUE : Integer.MAX_VALUE) ? "<" + (last + 1) : step == -1 && last != (PsiTypes.longType().equals(myType) ? Long.MIN_VALUE : Integer.MIN_VALUE) ? ">" + (last - 1) : (step < 0 ? ">=" : "<=") + last) + suffix; String increment = varName + (step == 1 ? "++" : step == -1 ? "--" : step > 0 ? "+=" + step + suffix : "-=" + (-step) + suffix); return "for(" + initial + ";" + condition + ";" + increment + ")"; }
[ 15, 42 ]
private String tryCollapseIntoCountingLoop(String varName)
2,187
public final class CollapseIntoLoopAction implements ModCommandAction
[ "@Override\n public @NotNull @IntentionFamilyName String getFamilyName()", "@Override\n public @Nullable Presentation getPresentation(@NotNull ActionContext context)", "@Override\n public @NotNull ModCommand perform(@NotNull ActionContext context)", "void generate()", "private String tryCollapseIntoCountingLoop(String varName)", "private static @NotNull List<PsiStatement> extractStatements(PsiFile file, TextRange range)", "private static @NotNull List<PsiStatement> extractStatements(PsiFile file, int offset)", "static @Nullable LoopModel from(@NotNull ActionContext context)", "private static @Nullable LoopModel from(List<PsiStatement> statements, int count, boolean mayTrimTail)", "private static boolean tryConsumeIteration(@NotNull List<PsiStatement> statements,\n int count,\n int offset,\n @NotNull List<PsiExpression> expressionsToReplace,\n @NotNull List<PsiExpression> expressionsToIterate)", "private static boolean isAllowedStatement(PsiStatement st)" ]
intellij-community/java/java-impl/src/com/intellij/codeInsight/intention/impl/CollapseIntoLoopAction.java
429,818
dispose
@Override public final void dispose() { lastGroupId = null; PersistentHashMap<String, Long> map = recentFileTimestampMap.getValueIfInitialized(); if (map != null) { try { map.close(); } catch (IOException e) { LOG.info("Cannot close persistent viewed files timestamps hash map", e); } } }
[ 30, 37 ]
@Override public final void dispose()
348
@State(name = "IdeDocumentHistory", storages = @Storage(StoragePathMacros.PRODUCT_WORKSPACE_FILE), reportStatistic = false) public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Disposable, PersistentStateComponent<IdeDocumentHistoryImpl.RecentlyChangedFilesState>
[ "@Override\n public void after(@NotNull List<? extends @NotNull VFileEvent> events)", "@Override\n public void commandStarted(@NotNull CommandEvent event)", "@Override\n public void commandFinished(@NotNull CommandEvent event)", "@Override\n public void documentChanged(@NotNull DocumentEvent e)", "@Override\n public void caretPositionChanged(@NotNull CaretEvent e)", "@Override\n public void extensionRemoved(@NotNull FileEditorProvider provider, @NotNull PluginDescriptor pluginDescriptor)", "protected FileEditorManagerEx getFileEditorManager()", "private static @NotNull PersistentHashMap<String, Long> initRecentFilesTimestampMap(@NotNull Project project)", "private static @NotNull PersistentHashMap<String, Long> createMap(@NotNull Path file)", "private void registerViewed(@NotNull VirtualFile file)", "public static void appendTimestamp(@NotNull Project project,\n @NotNull InplaceCommentAppender appender,\n @NotNull VirtualFile file)", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()", "@Override\n public RecentlyChangedFilesState getState()", "@Override\n public void loadState(@NotNull RecentlyChangedFilesState state)", "@Override\n public final void onSelectionChanged()", "@Override\n public void reallyExcludeCurrentCommandAsNavigation()", "final void onCommandStarted(Object commandGroupId)", "private @Nullable PlaceInfo getCurrentPlaceInfo()", "private static @Nullable PlaceInfo getPlaceInfoFromFocus(Project project)", "final void onCommandFinished(Project project, Object commandGroupId)", "@Override\n public final void includeCurrentCommandAsNavigation()", "@Override\n public void setCurrentCommandHasMoves()", "@Override\n public final void includeCurrentPlaceAsChangePlace()", "private void setCurrentChangePlace(boolean acceptPlaceFromFocus)", "@Override\n public @NotNull List<VirtualFile> getChangedFiles()", "boolean isRecentlyChanged(@NotNull VirtualFile file)", "@Override\n public final void clearHistory()", "@Override\n public final void back()", "@Override\n public final void forward()", "private PlaceInfo getTargetForwardInfo()", "@Override\n public final boolean isBackAvailable()", "@Override\n public final boolean isForwardAvailable()", "@Override\n public final void navigatePreviousChange()", "@Override\n public @NotNull List<PlaceInfo> getBackPlaces()", "@Override\n public List<PlaceInfo> getChangePlaces()", "@Override\n public void removeBackPlace(@NotNull PlaceInfo placeInfo)", "@Override\n public void removeChangePlace(@NotNull PlaceInfo placeInfo)", "private void removePlaceInfo(@NotNull PlaceInfo placeInfo, @NotNull Collection<PlaceInfo> places, boolean changed)", "@Override\n public final boolean isNavigatePreviousChangeAvailable()", "void removeInvalidFilesFromStacks()", "@Override\n public void navigateNextChange()", "@Override\n public boolean isNavigateNextChangeAvailable()", "private boolean removeInvalidFilesFrom(@NotNull List<PlaceInfo> backPlaces)", "boolean isIncludedInDocumentHistory(@NotNull Project project)", "@Override\n default boolean isIncludedInDocumentHistory(@NotNull Project project)", "@Override\n public void gotoPlaceInfo(@NotNull PlaceInfo info)", "@Override\n public void gotoPlaceInfo(@NotNull PlaceInfo info, boolean requestFocus)", "protected @Nullable FileEditorWithProvider getSelectedEditor()", "@SuppressWarnings(\"WeakerAccess\")\n protected PlaceInfo createPlaceInfo(@NotNull FileEditor fileEditor, FileEditorProvider fileProvider)", "private static @Nullable RangeMarker getCaretPosition(@NotNull FileEditor fileEditor)", "private void putLastOrMerge(@NotNull PlaceInfo next, int limit, boolean isChanged, Object groupId)", "private FileDocumentManager getFileDocumentManager()", "public EditorWindow getWindow()", "public @NotNull FileEditorState getNavigationState()", "public @NotNull VirtualFile getFile()", "public @NotNull String getEditorTypeId()", "@Override\n public String toString()", "public @Nullable RangeMarker getCaretPosition()", "public long getTimeStamp()", "public boolean isPreviewTab()", "@ApiStatus.Internal\n public @Nullable FileEditorManagerImpl.OpenMode getOpenMode()", "@Override\n public final void dispose()", "protected void executeCommand(Runnable runnable, @NlsContexts.Command String name, Object groupId)", "@Override\n public boolean isSame(@NotNull PlaceInfo first, @NotNull PlaceInfo second)", "@Deprecated\n void recentPlaceAdded(@NotNull PlaceInfo changePlace, boolean isChanged)", "void recentPlaceRemoved(@NotNull PlaceInfo changePlace, boolean isChanged)", "default void recentPlaceAdded(@NotNull PlaceInfo changePlace, boolean isChanged, @Nullable Object groupId)" ]
intellij-community/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java
299,681
getShortName
@Override public @NotNull @NonNls String getShortName() { return "BoundFieldAssignment"; }
[ 45, 57 ]
@Override public @NotNull @NonNls String getShortName()
100
public final class BoundFieldAssignmentInspection extends AbstractBaseJavaLocalInspectionTool
[ "@Override\n public @NotNull String getGroupDisplayName()", "@Override\n public @NotNull\n @NonNls String getShortName()", "@Override\n public boolean isEnabledByDefault()", "@Override\n public @NotNull PsiElementVisitor buildVisitor(final @NotNull ProblemsHolder holder, boolean isOnTheFly)" ]
intellij-community/plugins/ui-designer/src/com/intellij/uiDesigner/inspections/BoundFieldAssignmentInspection.java
157,176
performRefactoring
@Override protected void performRefactoring(UsageInfo @NotNull [] usages) { moveMembersToBase(); moveFieldInitializations(); for (UsageInfo usage : usages) { PsiElement element = usage.getElement(); if (element == null) continue; PullUpHelper<MemberInfo> processor = getProcessor(element); if (processor == null) continue; processor.updateUsage(element); } ApplicationManager.getApplication().invokeLater(() -> processMethodsDuplicates(), ModalityState.nonModal(), myProject.getDisposed()); }
[ 27, 45 ]
@Override protected void performRefactoring(UsageInfo @NotNull [] usages)
548
public class PullUpProcessor extends BaseRefactoringProcessor implements PullUpData
[ "@Override\n @NotNull\n protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo @NotNull [] usages)", "@Override\n protected UsageInfo @NotNull [] findUsages()", "@Nullable\n @Override\n protected String getRefactoringId()", "@Nullable\n @Override\n protected RefactoringEventData getBeforeData()", "@Nullable\n @Override\n protected RefactoringEventData getAfterData(UsageInfo @NotNull [] usages)", "@Override\n protected void performRefactoring(UsageInfo @NotNull [] usages)", "private void processMethodsDuplicates()", "@NotNull\n @Override\n protected String getCommandName()", "public void moveMembersToBase()", "@Nullable\n private PullUpHelper<MemberInfo> getProcessor(@NotNull PsiElement element)", "@Nullable\n private PullUpHelper<MemberInfo> getProcessor(Language language)", "@Nullable\n private PullUpHelper<MemberInfo> getProcessor(@NotNull MemberInfo info)", "private PsiSubstitutor upDownSuperClassSubstitutor()", "public void moveFieldInitializations()", "public static boolean checkedInterfacesContain(Collection<? extends MemberInfoBase<? extends PsiMember>> memberInfos, PsiMethod psiMethod)", "@NotNull\n @Override\n protected Collection<? extends PsiElement> getElementsToWrite(@NotNull UsageViewDescriptor descriptor)", "@Override\n public PsiClass getSourceClass()", "@Override\n public PsiClass getTargetClass()", "@Override\n public DocCommentPolicy getDocCommentPolicy()", "@Override\n public Set<PsiMember> getMembersToMove()", "@Override\n public Set<PsiMember> getMovedMembers()", "@Override\n public Project getProject()", "@Override\n public String getProcessedElementsHeader()", "@Override\n public PsiElement @NotNull [] getElements()", "@NotNull\n @Override\n public String getCodeReferencesText(int usagesCount, int filesCount)" ]
intellij-community/java/java-impl-refactorings/src/com/intellij/refactoring/memberPullUp/PullUpProcessor.java
452,856
escapeNeeded
private boolean escapeNeeded(@NotNull @NonNls String parameter) { return SystemInfo.isWindows && isCmd() && parameter.contains("^"); }
[ 16, 28 ]
private boolean escapeNeeded(@NotNull @NonNls String parameter)
140
public abstract class GitHandler
[ "private static @NotNull List<@NonNls String> getConfigParameters(@Nullable Project project,\n @NotNull List<@NonNls String> requestedConfigParameters)", "protected @NotNull ProcessEventListener listeners()", "public @Nullable Project project()", "@NotNull\n File getWorkingDirectory()", "public VcsExecutableContext getExecutableContext()", "public @NotNull GitExecutable getExecutable()", "@NotNull\n GitCommand getCommand()", "protected void addListener(@NotNull ProcessEventListener listener)", "public void withLowPriority()", "public void withNoTty()", "public void addParameters(@NonNls String @NotNull ... parameters)", "public void addParameters(@NotNull List<@NonNls String> parameters)", "private @NotNull String escapeParameterIfNeeded(@NotNull @NonNls String parameter)", "private boolean escapeNeeded(@NotNull @NonNls String parameter)", "private boolean isCmd()", "public void addRelativePaths(FilePath @NotNull ... parameters)", "public void addRelativePaths(@NotNull Collection<? extends FilePath> filePaths)", "public void addRelativeFiles(final @NotNull Collection<? extends VirtualFile> files)", "public void addAbsoluteFile(@NotNull File file)", "public void endOptions()", "private boolean isStarted()", "public boolean isLargeCommandLine()", "public @NlsSafe String printableCommandLine()", "private @NotNull String unescapeCommandLine(@NotNull String commandLine)", "public @NotNull Charset getCharset()", "public void setCharset(@NotNull Charset charset)", "public void setSilent(boolean silent)", "boolean isSilent()", "boolean isStdoutSuppressed()", "public void setStdoutSuppressed(final boolean stdoutSuppressed)", "boolean isStderrSuppressed()", "public void setStderrSuppressed(boolean stderrSuppressed)", "public void setInputProcessor(@Nullable ThrowableConsumer<? super OutputStream, IOException> inputProcessor)", "public void addCustomEnvironmentVariable(@NotNull @NonNls String name, @Nullable @NonNls String value)", "public boolean containsCustomEnvironmentVariable(@NotNull @NonNls String key)", "public void setPreValidateExecutable(boolean preValidateExecutable)", "boolean isPreValidateExecutable()", "public boolean isEnableInteractiveCallbacks()", "public void setEnableInteractiveCallbacks(boolean enableInteractiveCallbacks)", "void runInCurrentThread()", "private void logTime()", "private void start()", "private void prepareEnvironment()", "protected static boolean shouldSuppressReadLocks()", "protected abstract Process startProcess()", "protected abstract void startHandlingStreams()", "protected abstract void waitForProcess()", "@Override\n public String toString()", "@Deprecated(forRemoval = true)\n public int getExitCode()", "@Deprecated\n protected void setExitCode(int exitCode)", "@Deprecated\n void runInCurrentThread(@Nullable Runnable postStartAction)" ]
intellij-community/plugins/git4idea/src/git4idea/commands/GitHandler.java
60,527
mayOverflow
public boolean mayOverflow() { return myMayOverflow; }
[ 15, 26 ]
public boolean mayOverflow()
60
public final class CountingLoop
[ "@NotNull\n public PsiLocalVariable getCounter()", "@NotNull\n public PsiLoopStatement getLoop()", "@NotNull\n public PsiExpression getInitializer()", "@NotNull\n public PsiExpression getBound()", "public boolean isIncluding()", "public boolean isDescending()", "public boolean mayOverflow()", "@Nullable\n public static CountingLoop from(PsiForStatement forStatement)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/psiutils/CountingLoop.java
461,480
getAvailableArtifacts
@NotNull public static List<? extends Artifact> getAvailableArtifacts(@NotNull final ArtifactEditorContext context, @NotNull final Artifact artifact, final boolean notIncludedOnly) { final Set<Artifact> result = ContainerUtil.newHashSet(context.getArtifactModel().getArtifacts()); if (notIncludedOnly) { ArtifactUtil.processPackagingElements(artifact, ARTIFACT_ELEMENT_TYPE, artifactPackagingElement -> { result.remove(artifactPackagingElement.findArtifact(context)); return true; }, context, true); } result.remove(artifact); final Iterator<Artifact> iterator = result.iterator(); while (iterator.hasNext()) { Artifact another = iterator.next(); final boolean notContainThis = ArtifactUtil.processPackagingElements(another, ARTIFACT_ELEMENT_TYPE, element -> !artifact.getName().equals(element.getArtifactName()), context, true); if (!notContainThis) { iterator.remove(); } } final ArrayList<Artifact> list = new ArrayList<>(result); list.sort(ArtifactManager.ARTIFACT_COMPARATOR); return list; }
[ 50, 71 ]
@NotNull public static List<? extends Artifact> getAvailableArtifacts(@NotNull final ArtifactEditorContext context, @NotNull final Artifact artifact, final boolean notIncludedOnly)
1,284
public class ArtifactElementType extends ComplexPackagingElementType<ArtifactPackagingElement>
[ "@Override\n public Icon getCreateElementIcon()", "@Override\n public boolean canCreate(@NotNull ArtifactEditorContext context, @NotNull Artifact artifact)", "@Override\n @NotNull\n public List<? extends ArtifactPackagingElement> chooseAndCreate(@NotNull ArtifactEditorContext context, @NotNull Artifact artifact,\n @NotNull CompositePackagingElement<?> parent)", "@NotNull\n public static List<? extends Artifact> getAvailableArtifacts(@NotNull final ArtifactEditorContext context,\n @NotNull final Artifact artifact,\n final boolean notIncludedOnly)", "@Override\n @NotNull\n public ArtifactPackagingElement createEmpty(@NotNull Project project)", "@Override\n public String getShowContentActionText()" ]
intellij-community/java/compiler/impl/src/com/intellij/packaging/impl/elements/ArtifactElementType.java
458,212
createClassNamed
public static @Nullable PsiClass createClassNamed(String newClassName, String templateName, @NotNull PsiDirectory directory) throws IncorrectOperationException { return createClassNamed(newClassName, FileTemplateManager.getInstance(directory.getProject()).getDefaultProperties(), templateName, directory); }
[ 33, 49 ]
public static @Nullable PsiClass createClassNamed(String newClassName, String templateName, @NotNull PsiDirectory directory)
313
public final class CreateClassUtil
[ "private static @Nullable PsiClass createClassFromTemplate(final @NotNull Properties attributes, final @Nullable String templateName,\n final @NotNull PsiDirectory directoryRoot,\n final @NotNull String className)", "private static @NotNull PsiDirectory createParentDirectories(@NotNull PsiDirectory directoryRoot, @NotNull String className)", "public static String extractClassName(String fqName)", "public static String extractPackage(String fqName)", "public static String makeFQName(String aPackage, String className)", "public static @Nullable PsiClass createClassNamed(String newClassName, String templateName, @NotNull PsiDirectory directory)", "public static @Nullable PsiClass createClassWithDefaultProperties(String newClassName, Properties classProperties, String templateName,\n @NotNull PsiDirectory directory)", "private static @Nullable PsiClass createClassNamed(@Nullable String newClassName,\n @NotNull Properties properties,\n String templateName,\n @NotNull PsiDirectory directory)", "public static @Nullable PsiClass createClassFromCustomTemplate(@Nullable PsiDirectory classDirectory,\n final @Nullable Module module,\n final String className,\n final String templateName)" ]
intellij-community/java/java-impl/src/com/intellij/psi/util/CreateClassUtil.java
425,569
addMigrationRoot
boolean addMigrationRoot(PsiElement element, PsiType type, PsiElement place, boolean alreadyProcessed, boolean isContraVariantPosition, boolean userDefinedType) { if (myAllowedRoots != null && !myAllowedRoots.contains(element)) { return false; } if (type.equals(PsiTypes.nullType()) || PsiTypes.voidType().equals(type) && myCurrentRoot != null) { return false; } final PsiElement resolved = Util.normalizeElement(element); if (!canBeRoot(resolved, myRules.getSearchScope()) || resolved instanceof PsiEnumConstant) { return false; } final PsiType originalType = getElementType(resolved); LOG.assertTrue(originalType != null); type = userDefinedType ? type : TypeEvaluator.substituteType(type, originalType, isContraVariantPosition); if (userDefinedType) { Set<PsiTypeParameter> disappearedTypeParameters = getTypeParameters(originalType); disappearedTypeParameters.removeAll(getTypeParameters(type)); myDisappearedTypeParameters.addAll(disappearedTypeParameters); } else if (typeContainsTypeParameters(originalType, getTypeParameters(type))) return false; if (type instanceof PsiCapturedWildcardType) return false; if (resolved instanceof PsiMethod method) { if (method.getContainingClass() instanceof PsiAnonymousClass anonymousClass) { final HierarchicalMethodSignature signature = method.getHierarchicalMethodSignature(); final List<HierarchicalMethodSignature> superSignatures = signature.getSuperSignatures(); if (!superSignatures.isEmpty()) { final HierarchicalMethodSignature superSignature = superSignatures.get(0); final PsiSubstitutor substitutor = superSignature.getSubstitutor(); if (!substitutor.getSubstitutionMap().isEmpty()) { final PsiMethod superMethod = superSignature.getMethod(); if (superMethod.getReturnType() instanceof PsiClassType superReturnType && superReturnType.resolve() instanceof PsiTypeParameter returnTypeParameter) { final PsiType expectedReturnType = substitutor.substitute(returnTypeParameter); if (Comparing.equal(expectedReturnType, method.getReturnType())) { final PsiClassType baseClassType = anonymousClass.getBaseClassType(); final PsiClassType.ClassResolveResult result = baseClassType.resolveGenerics(); final PsiClass anonymousBaseClass = result.getElement(); if (anonymousBaseClass != null) { final PsiSubstitutor superHierarchySubstitutor = TypeConversionUtil .getClassSubstitutor(superMethod.getContainingClass(), anonymousBaseClass, PsiSubstitutor.EMPTY); final PsiType maybeTypeParameter = superHierarchySubstitutor.substitute(returnTypeParameter); if (maybeTypeParameter instanceof PsiClassType classType && classType.resolve() instanceof PsiTypeParameter typeParameter) { final PsiSubstitutor newSubstitutor = result.getSubstitutor().put(typeParameter, type); addRoot(new TypeMigrationUsageInfo(anonymousClass.getBaseClassReference().getParameterList()), new PsiImmediateClassType(anonymousBaseClass, newSubstitutor), place, alreadyProcessed); } } } } } } } final PsiMethod[] methods = OverridingMethodsSearch.search(method).toArray(PsiMethod.EMPTY_ARRAY); final OverriderUsageInfo[] overriders = new OverriderUsageInfo[methods.length]; for (int i = -1; i < methods.length; i++) { final TypeMigrationUsageInfo m; if (i < 0) { final OverriddenUsageInfo overriddenUsageInfo = new OverriddenUsageInfo(method); m = overriddenUsageInfo; final String newMethodName = isMethodNameCanBeChanged(method); if (newMethodName != null) { final MigrateGetterNameSetting migrateGetterNameSetting = myRules.getConversionSettings(MigrateGetterNameSetting.class); migrateGetterNameSetting.askUserIfNeeded(overriddenUsageInfo, newMethodName, myTypeEvaluator.getType(myCurrentRoot)); } } else { overriders[i] = new OverriderUsageInfo(methods[i], method); m = overriders[i]; } alreadyProcessed = addRoot(m, type, place, alreadyProcessed); } return !alreadyProcessed; } else if (resolved instanceof PsiParameter parameter && parameter.getDeclarationScope() instanceof PsiMethod method) { final int index = method.getParameterList().getParameterIndex(parameter); final PsiMethod[] methods = OverridingMethodsSearch.search(method).toArray(PsiMethod.EMPTY_ARRAY); final OverriderUsageInfo[] overriders = new OverriderUsageInfo[methods.length]; final OverriddenUsageInfo overriddenUsageInfo = new OverriddenUsageInfo(method.getParameterList().getParameters()[index]); for (int i = -1; i < methods.length; i++) { final PsiMethod m = i < 0 ? method : methods[i]; final PsiParameter p = m.getParameterList().getParameters()[index]; final TypeMigrationUsageInfo paramUsageInfo; if (i < 0) { paramUsageInfo = overriddenUsageInfo; } else { overriders[i] = new OverriderUsageInfo(p, method); paramUsageInfo = overriders[i]; } alreadyProcessed = addRoot(paramUsageInfo, type, place, alreadyProcessed); } return !alreadyProcessed; } else { return !addRoot(new TypeMigrationUsageInfo(resolved), type, place, alreadyProcessed); } }
[ 8, 24 ]
boolean addMigrationRoot(PsiElement element, PsiType type, PsiElement place, boolean alreadyProcessed, boolean isContraVariantPosition, boolean userDefinedType)
5,929
public class TypeMigrationLabeler
[ "public TypeMigrationRules getRules()", "public boolean hasFailedConversions()", "public Function<? super PsiElement, ? extends PsiType> getMigrationRootTypeFunction()", "public @NlsContexts.DialogMessage String[] getFailedConversionsReport()", "public UsageInfo[] getFailedUsages(TypeMigrationUsageInfo root)", "public UsageInfo[] getFailedUsages()", "private static UsageInfo @NotNull [] map2Usages(Collection<? extends Pair<SmartPsiElementPointer<PsiElement>, PsiType>> usages)", "public TypeMigrationUsageInfo[] getMigratedUsages()", "private TypeMigrationUsageInfo[] sortMigratedUsages(TypeMigrationUsageInfo[] infos)", "MigrationProducer createMigratorFor(UsageInfo[] usages)", "@Nullable\n public <T> T getSettings(Class<T> aClass)", "public void change(@NotNull TypeMigrationUsageInfo usageInfo, @NotNull Consumer<? super PsiNewExpression> consumer)", "public void flush()", "private void migrateMultiDeclarationVariable(TypeMigrationUsageInfo varUsageInfo)", "Object getConversion(UsageInfo info)", "private static boolean isMultiVariableDeclaration(PsiVariable variable)", "@Nullable\n Object getConversion(PsiElement element)", "public TypeMigrationUsageInfo[] getMigratedUsages(boolean autoMigrate, PsiElement... roots)", "@Nullable\n public Set<PsiElement> getTypeUsages(TypeMigrationUsageInfo element, TypeMigrationUsageInfo currentRoot)", "void convertExpression(PsiExpression expr, PsiType toType, PsiType fromType, boolean isCovariantPosition)", "private void convertExpression(PsiExpression expr, PsiType toType, PsiType fromType, boolean isCovariantPosition, PsiMember member)", "public void migrateExpressionType(PsiExpression expr,\n PsiType migrationType,\n PsiElement place,\n boolean alreadyProcessed,\n boolean isCovariant)", "private static boolean isGenericsArrayType(PsiType elementType)", "boolean addMigrationRoot(PsiElement element, PsiType type, PsiElement place, boolean alreadyProcessed, boolean isContraVariantPosition)", "boolean addMigrationRoot(PsiElement element,\n PsiType type,\n PsiElement place,\n boolean alreadyProcessed,\n boolean isContraVariantPosition,\n boolean userDefinedType)", "@NotNull\n private static Set<PsiTypeParameter> getTypeParameters(@NotNull PsiType type)", "@Nullable\n private String isMethodNameCanBeChanged(PsiMethod method)", "private boolean typeContainsTypeParameters(@Nullable PsiType type, @NotNull Set<PsiTypeParameter> excluded)", "@Nullable\n public static PsiType getElementType(PsiElement resolved)", "boolean addRoot(TypeMigrationUsageInfo usageInfo, PsiType type, PsiElement place, boolean alreadyProcessed)", "private void rememberRootTrace(TypeMigrationUsageInfo usageInfo, PsiType type, PsiElement place, boolean alreadyProcessed)", "private void setTypeUsage(TypeMigrationUsageInfo usageInfo, PsiElement place)", "public void setTypeUsage(PsiElement element, PsiElement place)", "void markFailedConversion(@NotNull PsiType migrationType, PsiElement element)", "void setConversionMapping(PsiExpression expression, Object obj)", "public PsiReference[] markRootUsages(PsiElement element, PsiType migrationType)", "PsiReference[] markRootUsages(PsiElement element, PsiType migrationType, PsiReference[] refs)", "public void setRootAndMigrate(TypeMigrationUsageInfo newRootUsageInfo, PsiType migrationType, PsiReference[] usages)", "private static PsiElement getContainingStatement(PsiElement root)", "private static PsiExpression getContainingCondition(PsiElement root, PsiStatement statement)", "void migrateRootUsageExpression(PsiReference usage, Set<? super PsiElement> processed)", "void migrateMethodCallExpressions(PsiType migrationType, PsiParameter param, PsiClass psiClass)", "private void migrateMethodReturnExpression(PsiType migrationType, PsiMethod method)", "private void iterate()", "private void migrate(boolean autoMigrate, PsiElement... victims)", "public TypeEvaluator getTypeEvaluator()", "public Map<TypeMigrationUsageInfo, HashSet<Pair<TypeMigrationUsageInfo, PsiType>>> getRootsTree()", "public TypeMigrationUsageInfo getCurrentRoot()", "public LinkedList<Pair<TypeMigrationUsageInfo, PsiType>> getMigrationRoots()", "public static List<PsiReference> filterReferences(PsiClass psiClass, Query<? extends PsiReference> memberReferences)", "private static boolean canBeRoot(@Nullable PsiElement element, @NotNull SearchScope migrationScope)", "@TestOnly\n public String getMigrationReport()" ]
intellij-community/java/java-impl-refactorings/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java
454,770
getType
@Override public @NotNull VcsRefType getType() { return myType; }
[ 39, 46 ]
@Override public @NotNull VcsRefType getType()
73
@ApiStatus.Internal public final class VcsRefImpl implements VcsRef
[ "@Override\n public @NotNull VcsRefType getType()", "@Override\n public @NotNull Hash getCommitHash()", "@Override\n public @NotNull String getName()", "@Override\n public @NotNull VirtualFile getRoot()", "@Override\n public String toString()", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()" ]
intellij-community/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsRefImpl.java
241,901
isElse
public boolean isElse() { return elseBranch; }
[ 15, 21 ]
public boolean isElse()
56
public final class SwitchUtils
[ "public static int calculateBranchCount(@NotNull PsiSwitchStatement statement)", "public static int calculateBranchCount(@NotNull PsiSwitchBlock block)", "@NotNull\n public static List<PsiElement> getSwitchBranches(@NotNull PsiSwitchBlock block)", "public static int countUnconditionalPatterns(@NotNull PsiExpression selector,\n @NotNull Set<Object> existingCaseValues)", "public static boolean canBeSwitchCase(@Nullable PsiExpression expression,\n @NotNull PsiExpression switchExpression,\n @NotNull LanguageLevel languageLevel,\n @NotNull Set<Object> existingCaseValues,\n boolean isPatternMatch)", "public static boolean isExtendedSwitchSelectorType(@Nullable PsiType primitiveOrBoxedType)", "private static boolean isComparisonWithPrimitives(@Nullable PsiExpression psiExpression, @NotNull PsiExpression switchExpression,\n @NotNull Set<Object> existingCaseValues)", "private static boolean primitiveValueCanBeUsedForComparisonInCase(@Nullable PsiExpression value,\n @Nullable PsiExpression selector,\n @Nullable Set<Object> existingCaseValues)", "private static boolean canBePatternSwitchCase(@Nullable PsiExpression expression,\n @NotNull PsiExpression switchExpression,\n @NotNull Set<Object> existingCaseValues)", "private static boolean isNullComparison(@Nullable PsiExpression expression, @NotNull PsiExpression switchExpression)", "public static @Nullable PsiCaseLabelElement createPatternFromExpression(@NotNull PsiExpression expression)", "@Contract(pure = true)\n public static boolean isRuleFormatSwitch(@NotNull PsiSwitchBlock block)", "@Contract(pure = true)\n private static boolean isBeingCompleted(@NotNull PsiSwitchLabelStatementBase label)", "public static boolean canBeSwitchSelectorExpression(PsiExpression expression, LanguageLevel languageLevel)", "@Contract(\"null -> null\")\n @Nullable\n public static PsiExpression getSwitchSelectorExpression(PsiExpression expression)", "private static PsiExpression getPossibleSwitchSelectorExpression(PsiExpression expression, LanguageLevel languageLevel)", "private static @Nullable PsiExpression findPossiblePatternOperand(@Nullable PsiExpression expression)", "private static boolean isUsedOutsideParentIf(@NotNull PsiInstanceOfExpression expression)", "public static @Nullable PsiExpression findPatternSwitchExpression(@Nullable PsiExpression expression)", "@Contract(\"null, _ -> false\")\n public static boolean canBePatternSwitchCase(@Nullable PsiExpression expression, @NotNull PsiExpression switchExpression)", "public static @Nullable PsiExpression findNullCheckedOperand(PsiExpression expression)", "@Nullable\n public static PsiElement findDefaultElement(@NotNull PsiSwitchBlock switchBlock)", "@Nullable\n public static PsiElement findDefaultElement(@NotNull PsiSwitchLabelStatementBase label)", "public static @Nullable @NonNls String createPatternCaseText(PsiExpression expression)", "@Nullable\n private static String getSwitchCaseTextWithComparedPrimitives(@NotNull PsiPolyadicExpression expression)", "private static boolean isSwitchSelector(@NotNull PsiElement child, @NotNull PsiExpression selector)", "private static @Nullable PsiExpression findSelectorWithComparedPrimitives(@NotNull PsiPolyadicExpression expression)", "private static boolean canBeCaseLabel(@Nullable PsiExpression expression,\n @NotNull LanguageLevel languageLevel,\n @Nullable Set<Object> existingCaseValues)", "public static String findUniqueLabelName(PsiStatement statement, @NonNls String baseName)", "private static boolean checkForLabel(String name, PsiElement ancestor)", "@NotNull\n public static List<PsiEnumConstant> findEnumConstants(PsiSwitchLabelStatementBase label)", "public static boolean isDefaultLabel(@Nullable PsiSwitchLabelStatementBase label)", "public static boolean hasOnlyDefaultCase(@Nullable PsiSwitchLabelStatementBase label)", "public static boolean isCaseNull(@Nullable PsiSwitchLabelStatementBase label)", "public static boolean isCaseNullDefault(@Nullable PsiSwitchLabelStatementBase label)", "public static boolean isUnconditionalLabel(@Nullable PsiSwitchLabelStatementBase label)", "public static List<PsiCaseLabelElement> findRemovableUnreachableBranches(PsiCaseLabelElement reachableLabel,\n PsiSwitchBlock statement)", "@Override\n public void visitElement(@NotNull PsiElement element)", "@Override\n public void visitLabeledStatement(@NotNull PsiLabeledStatement statement)", "public boolean isUsed()", "public void addComment(String comment)", "public void addStatementComment(String comment)", "public void addCaseExpression(PsiExpression expression)", "public boolean hasPattern()", "public PsiStatement getStatement()", "public List<PsiExpression> getCaseExpressions()", "public boolean isElse()", "public boolean topLevelDeclarationsConflictWith(IfStatementBranch testBranch)", "private static boolean intersects(Set<String> set1, Set<String> set2)", "public List<String> getComments()", "public List<String> getStatementComments()", "public void calculateVariablesDeclared(PsiStatement statement)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/psiutils/SwitchUtils.java
460,880
getPresentation
@Override protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element) { final NavigatablePsiElement maybeField = PsiTreeUtil.getParentOfType(element, PsiMethod.class, PsiFunctionalExpression.class, PsiField.class); if (!(maybeField instanceof PsiField field)) return null; if (field.hasModifierProperty(PsiModifier.STATIC)) return null; final PsiClass containingClass = field.getContainingClass(); if (containingClass == null || containingClass instanceof PsiAnonymousClass || containingClass.isInterface()) { return null; } final List<PsiClassType> exceptions = ExceptionUtil.getUnhandledExceptions(field); if (exceptions.isEmpty()) { return null; } final PsiMethod[] existedConstructors = containingClass.getConstructors(); return Presentation.of(QuickFixBundle.message("add.exception.from.field.initializer.to.constructor.throws.text", existedConstructors.length)); }
[ 45, 60 ]
@Override protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element)
1,002
public final class AddExceptionFromFieldInitializerToConstructorThrowsFix extends PsiUpdateModCommandAction<PsiElement>
[ "@Override\n protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiElement element)", "@Override\n protected void invoke(@NotNull ActionContext context, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)", "@Override\n public @Nls @NotNull String getFamilyName()" ]
intellij-community/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AddExceptionFromFieldInitializerToConstructorThrowsFix.java
432,532
isDeprecated
@Override public boolean isDeprecated() { return false; }
[ 27, 39 ]
@Override public boolean isDeprecated()
65
public class GrLightMethodBuilder extends LightElement implements GrMethod, OriginInfoAwareElement
[ "public GrLightMethodBuilder setNamedParameters(@NotNull Map<String, NamedArgumentDescriptor> namedParameters)", "@Override\n public ItemPresentation getPresentation()", "@Override\n public boolean hasTypeParameters()", "@Override\n public PsiTypeParameter @NotNull [] getTypeParameters()", "@Override\n @NotNull\n public LightTypeParameterListBuilder getTypeParameterList()", "@Override\n public GrDocComment getDocComment()", "@Override\n public boolean isDeprecated()", "@Override\n public PsiElement setName(@NlsSafe @NotNull String name)", "@Override\n public @NlsSafe @NotNull String getName()", "@Override\n @NotNull\n public HierarchicalMethodSignature getHierarchicalMethodSignature()", "@Override\n public boolean hasModifierProperty(@GrModifierConstant @NotNull String name)", "@Override\n public GrMember[] getMembers()", "@Override\n @NotNull\n public GrLightModifierList getModifierList()", "@NotNull\n @Override\n public Map<String, NamedArgumentDescriptor> getNamedParameters()", "@Override\n public GrReflectedMethod @NotNull [] getReflectedMethods()", "public GrLightMethodBuilder addModifier(@GrModifierConstant String modifier)", "public GrLightMethodBuilder addModifier(int modifier)", "public GrLightMethodBuilder setModifiers(@GrModifierConstant String[] modifiers)", "public GrLightMethodBuilder setModifiers(int modifiers)", "@Override\n public GrOpenBlock getBlock()", "@Override\n public void setBlock(GrCodeBlock newBlock)", "@Override\n public GrTypeElement getReturnTypeElementGroovy()", "@Override\n public PsiType getInferredReturnType()", "@Override\n public PsiType getReturnType()", "@Nullable\n public GrTypeElement setReturnType(@NlsSafe String returnType, GlobalSearchScope scope)", "@Override\n public GrTypeElement setReturnType(@Nullable PsiType returnType)", "@Override\n public PsiTypeElement getReturnTypeElement()", "@Override\n public GrParameter @NotNull [] getParameters()", "@Override\n @NotNull\n public GrLightParameterListBuilder getParameterList()", "@NotNull\n public GrLightMethodBuilder addParameter(@NotNull GrParameter parameter)", "@NotNull\n public GrLightMethodBuilder addParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type)", "@NotNull\n public GrLightMethodBuilder addOptionalParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type)", "@NotNull\n private GrLightMethodBuilder addParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type, boolean isOptional)", "@NotNull\n public GrLightMethodBuilder addParameter(@NlsSafe @NotNull String name, @NlsSafe @Nullable PsiType type)", "@NotNull\n public GrLightMethodBuilder addParameter(@NlsSafe @NotNull String name, @NlsSafe @Nullable PsiType type, boolean isOptional)", "@NotNull\n public GrLightParameter addAndGetParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type)", "@NotNull\n public GrLightParameter addAndGetParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull PsiType type)", "@NotNull\n public GrLightParameter addAndGetOptionalParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type)", "@NotNull\n private GrLightParameter addAndGetParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull String type, boolean isOptional)", "@NotNull\n public GrLightParameter addAndGetParameter(@NlsSafe @NotNull String name, @NlsSafe @NotNull PsiType type, boolean isOptional)", "@Override\n @NotNull\n public LightReferenceListBuilder getThrowsList()", "@Override\n public PsiCodeBlock getBody()", "@Override\n public boolean isConstructor()", "public GrLightMethodBuilder setConstructor(boolean constructor)", "@Override\n public boolean isVarArgs()", "@Override\n @NotNull\n public MethodSignature getSignature(@NotNull PsiSubstitutor substitutor)", "@Override\n public PsiIdentifier getNameIdentifier()", "@Override\n public PsiMethod @NotNull [] findSuperMethods()", "@Override\n public PsiMethod @NotNull [] findSuperMethods(boolean checkAccess)", "@Override\n public PsiMethod @NotNull [] findSuperMethods(PsiClass parentClass)", "@Override\n @NotNull\n public List<MethodSignatureBackedByPsiMethod> findSuperMethodSignaturesIncludingStatic(boolean checkAccess)", "@Override\n public PsiMethod findDeepestSuperMethod()", "@Override\n public PsiMethod @NotNull [] findDeepestSuperMethods()", "@Override\n public void accept(@NotNull PsiElementVisitor visitor)", "@Override\n public PsiClass getContainingClass()", "public GrLightMethodBuilder setContainingClass(PsiClass containingClass)", "public Object getMethodKind()", "public GrLightMethodBuilder setMethodKind(@Nullable Object methodKind)", "@NotNull\n @Override\n public PsiElement getNameIdentifierGroovy()", "@Override\n public void accept(@NotNull GroovyElementVisitor visitor)", "@Override\n public void acceptChildren(@NotNull GroovyElementVisitor visitor)", "public static Object getMethodKind(@Nullable PsiElement method)", "public static boolean checkKind(@Nullable PsiElement method, @NotNull Object kind)", "public static boolean checkKind(@Nullable PsiElement method, @NotNull Object kind1, @NotNull Object kind2)", "@Override\n public String toString()", "@Override\n protected boolean isVisibilitySupported()", "@Override\n public Icon getElementIcon(final int flags)", "public GrLightMethodBuilder setBaseIcon(Icon baseIcon)", "@Override\n public boolean isEquivalentTo(final PsiElement another)", "@Override\n @NotNull\n public SearchScope getUseScope()", "@Override\n @Nullable\n public PsiFile getContainingFile()", "@Override\n public PsiElement getContext()", "protected void copyData(GrLightMethodBuilder dst)", "@Override\n public GrLightMethodBuilder copy()", "public <T> T getData()", "@Nullable\n public static <T> T getData(@Nullable PsiElement method, @NotNull Object kind)", "public GrLightMethodBuilder setData(@Nullable Object data)", "public GrLightMethodBuilder addException(PsiClassType type)", "@Nullable\n @Override\n public String getOriginInfo()", "public void setOriginInfo(@NonNls @Nullable String originInfo)", "@NotNull\n public LightTypeParameterBuilder addTypeParameter(@NlsSafe @NotNull String name)", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()" ]
intellij-community/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/synthetic/GrLightMethodBuilder.java
72,072
fetchSlotValues
private static Map<DecompiledLocalVariable, Value> fetchSlotValues(Map<DecompiledLocalVariable, Value> map, List<? extends DecompiledLocalVariable> vars, StackFrame frame) throws Exception { final Value[] values; if (frame instanceof StackFrameImpl) { values = ((StackFrameImpl)frame).getSlotsValues(vars); } else { final Long frameId = ReflectionUtil.getField(frame.getClass(), frame, long.class, "id"); final VirtualMachine vm = frame.virtualMachine(); final Method stateMethod = vm.getClass().getDeclaredMethod("state"); stateMethod.setAccessible(true); Object slotInfoArray = createSlotInfoArray(vars); Object ps; final Object vmState = stateMethod.invoke(vm); synchronized (vmState) { ps = ourEnqueueMethod.invoke(null, vm, frame.thread(), frameId, slotInfoArray); } final Object reply = ourWaitForReplyMethod.invoke(null, vm, ps); values = ReflectionUtil.getField(reply.getClass(), reply, Value[].class, "values"); if (vars.size() != values.length) { throw new InternalException("Wrong number of values returned from target VM"); } } int idx = 0; for (DecompiledLocalVariable var : vars) { map.put(var, values[idx++]); } return map; }
[ 51, 66 ]
private static Map<DecompiledLocalVariable, Value> fetchSlotValues(Map<DecompiledLocalVariable, Value> map, List<? extends DecompiledLocalVariable> vars, StackFrame frame)
1,425
public final class LocalVariablesUtil
[ "public static Map<DecompiledLocalVariable, Value> fetchValues(@NotNull StackFrameProxyImpl frameProxy,\n DebugProcess process,\n boolean full)", "private static Map<DecompiledLocalVariable, Value> fetchSlotValues(Map<DecompiledLocalVariable, Value> map,\n List<? extends DecompiledLocalVariable> vars,\n StackFrame frame)", "public static boolean canSetValues()", "public static void setValue(StackFrame frame, SlotLocalVariable variable, Value value)", "private static Object createSlotInfoArraySet(int slot, Value value)", "private static Object createSlotInfoArray(Collection<? extends DecompiledLocalVariable> vars)", "private static Method getDeclaredMethodByName(Class<?> aClass, String methodName)", "@NotNull\n private static List<DecompiledLocalVariable> collectVariablesFromBytecode(VirtualMachineProxyImpl vm,\n Location location,\n MultiMap<Integer, String> namesMap)", "@NotNull\n private static MultiMap<Integer, String> calcNames(@NotNull final StackFrameContext context, final int firstLocalsSlot)", "private boolean shouldVisit(PsiElement scope)", "@Override\n public void visitElement(@NotNull PsiElement element)", "@Override\n public void visitLocalVariable(@NotNull PsiLocalVariable variable)", "@Override\n public void visitSynchronizedStatement(@NotNull PsiSynchronizedStatement statement)", "private void appendName(@Nullable PsiVariable variable)", "private void appendName(String varName, int size)", "@Override\n public void visitCodeBlock(@NotNull PsiCodeBlock block)", "@Override\n public void visitForStatement(@NotNull PsiForStatement statement)", "@Override\n public void visitForeachStatement(@NotNull PsiForeachStatement statement)", "@Override\n public void visitCatchSection(@NotNull PsiCatchSection section)", "@Override\n public void visitResourceList(@NotNull PsiResourceList resourceList)", "@Override\n public void visitClass(@NotNull PsiClass aClass)", "private static int getParametersStackSize(PsiElement method)", "private static int getTypeSlotSize(PsiType varType)", "private static int getFirstArgsSlot(com.sun.jdi.Method method)", "private static int getFirstLocalsSlot(com.sun.jdi.Method method)", "private static int getTypeSlotSize(String name)" ]
intellij-community/java/debugger/impl/src/com/intellij/debugger/jdi/LocalVariablesUtil.java
443,761
isAcceptable
@Override public boolean isAcceptable(Object element, PsiElement context) { return element != null && Arrays.stream(myValue).anyMatch(v -> v == null || v.equals(getTextByElement(element))); }
[ 27, 39 ]
@Override public boolean isAcceptable(Object element, PsiElement context)
199
public class PlainTextFilter implements ElementFilter
[ "@Override\n public boolean isClassAcceptable(Class hintClass)", "@Override\n public boolean isAcceptable(Object element, PsiElement context)", "protected String getTextByElement(Object element)", "@Override\n public String toString()" ]
intellij-community/platform/lang-impl/src/com/intellij/psi/filters/PlainTextFilter.java
275,275
getTypeName
@Override public @Nullable String getTypeName(Object o) { //noinspection unchecked return myProvider.getTypeName(o); }
[ 38, 49 ]
@Override public @Nullable String getTypeName(Object o)
138
public final class TypePresentationServiceImpl extends TypePresentationService
[ "@Override\n public @Nullable Icon getIcon(@NotNull Object o)", "@Override\n public @Nullable Icon getTypeIcon(Class type)", "private @Nullable Icon getIcon(Class<?> type, Object o)", "@Override\n public @NotNull String getTypePresentableName(Class type)", "@Override\n public @Nullable String getTypeName(@NotNull Object o)", "@Override\n public @Nullable String getObjectName(@NotNull Object o)", "private @Nullable <T> T findFirst(Class<?> clazz, @NotNull Function<? super PresentationTemplate, ? extends T> f)", "@Override\n public void extensionAdded(@NotNull TypeIconEP extension, @NotNull PluginDescriptor pluginDescriptor)", "@Override\n public void extensionRemoved(@NotNull TypeIconEP extension, @NotNull PluginDescriptor pluginDescriptor)", "@Override\n public void extensionAdded(@NotNull TypeNameEP extension, @NotNull PluginDescriptor pluginDescriptor)", "@Override\n public void extensionRemoved(@NotNull TypeNameEP extension, @NotNull PluginDescriptor pluginDescriptor)", "@Override\n public void beforePluginUnload(@NotNull IdeaPluginDescriptor pluginDescriptor, boolean isUpdate)", "private @Nullable PresentationTemplate createPresentationTemplate(Class<?> type)", "private void walkSupers(Class<?> aClass, Set<? super Class<?>> classes, Set<? super PresentationTemplate> templates)", "@Override\n public @Nullable Icon getIcon(Object o, int flags)", "@Override\n public @Nullable String getName(Object o)", "@Override\n public @Nullable String getTypeName()", "@Override\n public @Nullable String getTypeName(Object o)", "@Override\n public @Nullable Icon getIcon(Object o)", "@Override\n public @Nullable Icon getIcon(Object o, int flags)", "@Override\n public @Nullable String getTypeName()", "@Override\n public @Nullable String getTypeName(Object o)", "@Override\n public @Nullable String getName(Object o)", "@Override\n protected Icon compute()", "@Override\n protected PresentationProvider<?> compute()", "@Nullable\n Icon getIcon(Object o, int flags)", "@Nullable\n String getName(Object o)", "@Nullable\n String getTypeName()", "@Nullable\n String getTypeName(Object o)" ]
intellij-community/platform/platform-impl/src/com/intellij/ide/TypePresentationServiceImpl.java
311,051
annotation_member_value_pair_0
private static boolean annotation_member_value_pair_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "annotation_member_value_pair_0")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_); r = annotation_key(b, l + 1); r = r && consumeToken(b, T_ASSIGN); p = r; // pin = 2 r = r && annotation_value(b, l + 1); exit_section_(b, l, m, r, p, null); return r || p; }
[ 23, 53 ]
private static boolean annotation_member_value_pair_0(PsiBuilder b, int l)
420
@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"}) public class GroovyGeneratedParser implements PsiParser, LightPsiParser
[ "public ASTNode parse(IElementType t, PsiBuilder b)", "public void parseLight(IElementType t, PsiBuilder b)", "protected boolean parse_root_(IElementType t, PsiBuilder b)", "static boolean parse_root_(IElementType t, PsiBuilder b, int l)", "static boolean a_b_a(PsiBuilder b, int l, Parser _a, Parser _b)", "private static boolean a_b_a_1(PsiBuilder b, int l, Parser _b, Parser _a)", "private static boolean a_b_a_1_0(PsiBuilder b, int l, Parser _b, Parser _a)", "static boolean a_b_a_p(PsiBuilder b, int l, Parser _a, Parser _b)", "private static boolean a_b_a_p_1(PsiBuilder b, int l, Parser _b, Parser _a)", "private static boolean a_b_a_p_1_0(PsiBuilder b, int l, Parser _b, Parser _a)", "static boolean after_annotation_reference(PsiBuilder b, int l)", "private static boolean after_annotation_reference_0(PsiBuilder b, int l)", "static boolean after_dot(PsiBuilder b, int l)", "private static boolean after_dot_0_0(PsiBuilder b, int l)", "private static boolean after_dot_0_0_0(PsiBuilder b, int l)", "static boolean after_if_keyword(PsiBuilder b, int l)", "private static boolean after_if_keyword_3(PsiBuilder b, int l)", "private static boolean after_if_keyword_3_0(PsiBuilder b, int l)", "static boolean after_label(PsiBuilder b, int l)", "static boolean after_while(PsiBuilder b, int l)", "static boolean annotated(PsiBuilder b, int l, Parser _item)", "private static boolean annotated_0(PsiBuilder b, int l, Parser _item)", "public static boolean annotation(PsiBuilder b, int l)", "public static boolean annotation_argument_list(PsiBuilder b, int l)", "static boolean annotation_array_item(PsiBuilder b, int l)", "static boolean annotation_array_item_end(PsiBuilder b, int l)", "private static boolean annotation_array_item_end_1(PsiBuilder b, int l)", "private static boolean annotation_array_item_end_1_1(PsiBuilder b, int l)", "static boolean annotation_array_item_start(PsiBuilder b, int l)", "public static boolean annotation_array_value(PsiBuilder b, int l)", "private static boolean annotation_array_value_1(PsiBuilder b, int l)", "private static boolean annotation_array_value_2(PsiBuilder b, int l)", "public static boolean annotation_body(PsiBuilder b, int l)", "static boolean annotation_definition_header(PsiBuilder b, int l)", "static boolean annotation_key(PsiBuilder b, int l)", "static boolean annotation_level(PsiBuilder b, int l)", "static boolean annotation_level_item(PsiBuilder b, int l)", "public static boolean annotation_member_value_pair(PsiBuilder b, int l)", "private static boolean annotation_member_value_pair_0(PsiBuilder b, int l)", "static boolean annotation_members(PsiBuilder b, int l)", "public static boolean annotation_method(PsiBuilder b, int l)", "private static boolean annotation_method_2(PsiBuilder b, int l)", "private static boolean annotation_method_2_0(PsiBuilder b, int l)", "static boolean annotation_method_default(PsiBuilder b, int l)", "public static boolean annotation_modifier_list(PsiBuilder b, int l)", "static boolean annotation_reference(PsiBuilder b, int l)", "static boolean annotation_tails(PsiBuilder b, int l)", "private static boolean annotation_tails_0_0(PsiBuilder b, int l)", "public static boolean annotation_type_definition(PsiBuilder b, int l)", "private static boolean annotation_type_definition_1(PsiBuilder b, int l)", "static boolean annotation_value(PsiBuilder b, int l)", "public static boolean anonymous_type_definition(PsiBuilder b, int l)", "static boolean any_type_element(PsiBuilder b, int l)", "static boolean application(PsiBuilder b, int l)", "public static boolean application_argument_list(PsiBuilder b, int l)", "static boolean application_argument_start(PsiBuilder b, int l)", "static boolean application_arguments(PsiBuilder b, int l)", "private static boolean application_arguments_1(PsiBuilder b, int l)", "private static boolean application_arguments_1_0(PsiBuilder b, int l)", "public static boolean application_call(PsiBuilder b, int l)", "private static boolean application_call_0(PsiBuilder b, int l)", "private static boolean application_call_0_1(PsiBuilder b, int l)", "private static boolean application_call_0_1_0(PsiBuilder b, int l)", "private static boolean application_call_1(PsiBuilder b, int l)", "private static boolean application_call_1_1(PsiBuilder b, int l)", "private static boolean application_call_1_1_0(PsiBuilder b, int l)", "public static boolean application_expression(PsiBuilder b, int l)", "public static boolean application_index(PsiBuilder b, int l)", "public static boolean application_ref(PsiBuilder b, int l)", "static boolean argument(PsiBuilder b, int l)", "private static boolean argument_2(PsiBuilder b, int l)", "private static boolean argument_2_0(PsiBuilder b, int l)", "private static boolean argument_2_2(PsiBuilder b, int l)", "private static boolean argument_2_2_0(PsiBuilder b, int l)", "private static boolean argument_3(PsiBuilder b, int l)", "private static boolean argument_3_1(PsiBuilder b, int l)", "private static boolean argument_3_1_0(PsiBuilder b, int l)", "public static boolean argument_label(PsiBuilder b, int l)", "static boolean argument_list_item(PsiBuilder b, int l, Parser _brace)", "static boolean argument_list_item_end(PsiBuilder b, int l, Parser _brace)", "private static Parser argument_list_item_end_0_0_$(Parser _brace)", "private static boolean argument_list_item_end_0_0(PsiBuilder b, int l, Parser _brace)", "private static boolean argument_list_item_end_0_0_1(PsiBuilder b, int l, Parser _brace)", "static boolean argument_list_item_head(PsiBuilder b, int l, Parser _brace)", "static boolean argument_list_item_head0(PsiBuilder b, int l, Parser _brace, Parser _recovery)", "private static boolean argument_list_item_head0_1(PsiBuilder b, int l, Parser _brace, Parser _recovery)", "private static boolean argument_list_item_head0_1_0(PsiBuilder b, int l, Parser _brace, Parser _recovery)", "static Parser argument_list_item_recovery_$(Parser _brace)", "static boolean argument_list_item_recovery(PsiBuilder b, int l, Parser _brace)", "private static boolean argument_list_item_recovery_0(PsiBuilder b, int l, Parser _brace)", "public static boolean array_declaration(PsiBuilder b, int l)", "private static boolean array_declaration_1(PsiBuilder b, int l)", "static boolean array_dimensions(PsiBuilder b, int l)", "private static boolean array_dimensions_0(PsiBuilder b, int l)", "private static boolean array_dimensions_2(PsiBuilder b, int l)", "public static boolean array_initializer(PsiBuilder b, int l)", "private static boolean array_initializer_0(PsiBuilder b, int l)", "public static boolean array_initializer_declaration(PsiBuilder b, int l)", "static boolean array_initializer_item(PsiBuilder b, int l)", "static boolean array_initializer_pin(PsiBuilder b, int l)", "private static boolean array_initializer_pin_2(PsiBuilder b, int l)", "static boolean array_initializer_separator(PsiBuilder b, int l)", "static boolean array_initializer_tail(PsiBuilder b, int l)", "public static boolean array_type_element(PsiBuilder b, int l)", "private static boolean array_type_element_0(PsiBuilder b, int l)", "static boolean array_type_elements(PsiBuilder b, int l)", "static boolean assert_message(PsiBuilder b, int l)", "private static boolean assert_message_1(PsiBuilder b, int l)", "static boolean assert_message_separator(PsiBuilder b, int l)", "public static boolean assert_statement(PsiBuilder b, int l)", "private static boolean assert_statement_2(PsiBuilder b, int l)", "static boolean assignment_expression_rvalue(PsiBuilder b, int l)", "private static boolean assignment_expression_rvalue_0(PsiBuilder b, int l)", "static boolean attribute_dot(PsiBuilder b, int l)", "private static boolean attribute_dot_2(PsiBuilder b, int l)", "static boolean block_declaration_start(PsiBuilder b, int l)", "static boolean block_declaration_start_no_modifiers(PsiBuilder b, int l)", "static boolean block_declaration_tail(PsiBuilder b, int l)", "private static boolean block_declaration_tail_0_0(PsiBuilder b, int l)", "static boolean block_declaration_type_element(PsiBuilder b, int l)", "private static boolean block_declaration_type_element_0(PsiBuilder b, int l)", "public static boolean block_lambda_body(PsiBuilder b, int l)", "static boolean block_lambda_body_impl(PsiBuilder b, int l)", "public static boolean block_lambda_body_switch_aware(PsiBuilder b, int l)", "static boolean block_level_end(PsiBuilder b, int l)", "private static boolean block_level_end_1(PsiBuilder b, int l)", "static boolean block_level_item(PsiBuilder b, int l)", "private static boolean block_level_item_1(PsiBuilder b, int l)", "static boolean block_level_start(PsiBuilder b, int l)", "public static boolean block_levels(PsiBuilder b, int l)", "private static boolean block_levels_0(PsiBuilder b, int l)", "public static boolean block_statement(PsiBuilder b, int l)", "private static boolean block_statement_0(PsiBuilder b, int l)", "static boolean bracket_argument_list_inner(PsiBuilder b, int l)", "static boolean bracket_argument_list_item(PsiBuilder b, int l)", "static boolean branch(PsiBuilder b, int l)", "public static boolean break_statement(PsiBuilder b, int l)", "private static boolean break_statement_1(PsiBuilder b, int l)", "public static boolean call_argument_list(PsiBuilder b, int l)", "private static boolean call_argument_list_0(PsiBuilder b, int l)", "private static boolean call_argument_list_1(PsiBuilder b, int l)", "static boolean call_tail(PsiBuilder b, int l)", "private static boolean call_tail_0(PsiBuilder b, int l)", "private static boolean call_tail_0_1(PsiBuilder b, int l)", "private static boolean call_tail_1(PsiBuilder b, int l)", "private static boolean call_tail_1_1(PsiBuilder b, int l)", "static boolean call_tail_with_nl_before_closure(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_0(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_0_1(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_0_1_0(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_1(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_1_1(PsiBuilder b, int l)", "private static boolean call_tail_with_nl_before_closure_1_1_0(PsiBuilder b, int l)", "static boolean capital_class_type_element(PsiBuilder b, int l)", "public static boolean capital_type_element(PsiBuilder b, int l)", "private static boolean capital_type_element_0(PsiBuilder b, int l)", "static boolean case_arrow_remainder(PsiBuilder b, int l)", "static boolean case_colon_remainder(PsiBuilder b, int l)", "private static boolean case_colon_remainder_2(PsiBuilder b, int l)", "static boolean case_level_end(PsiBuilder b, int l)", "private static boolean case_level_end_1(PsiBuilder b, int l)", "private static boolean case_level_end_1_0(PsiBuilder b, int l)", "static boolean case_level_item(PsiBuilder b, int l)", "private static boolean case_level_item_1(PsiBuilder b, int l)", "static boolean case_level_start(PsiBuilder b, int l)", "public static boolean case_section(PsiBuilder b, int l)", "static boolean case_section_recovery(PsiBuilder b, int l)", "private static boolean case_section_recovery_0(PsiBuilder b, int l)", "static boolean cast_expression_start(PsiBuilder b, int l)", "private static boolean cast_expression_start_1(PsiBuilder b, int l)", "private static boolean cast_expression_start_2(PsiBuilder b, int l)", "static boolean cast_operand(PsiBuilder b, int l)", "private static boolean cast_operand_0(PsiBuilder b, int l)", "public static boolean catch_clause(PsiBuilder b, int l)", "private static boolean catch_clause_4(PsiBuilder b, int l)", "public static boolean catch_parameter(PsiBuilder b, int l)", "static boolean catch_parameter_start(PsiBuilder b, int l)", "private static boolean catch_parameter_start_1(PsiBuilder b, int l)", "static boolean catch_parameter_type_element(PsiBuilder b, int l)", "private static boolean catch_parameter_type_element_1(PsiBuilder b, int l)", "public static boolean class_body(PsiBuilder b, int l)", "public static boolean class_body_inner(PsiBuilder b, int l)", "static boolean class_declaration_start(PsiBuilder b, int l)", "static boolean class_declaration_start_after_no_modifiers(PsiBuilder b, int l)", "static boolean class_declaration_start_after_no_modifiers1(PsiBuilder b, int l)", "private static boolean class_declaration_start_after_no_modifiers1_1(PsiBuilder b, int l)", "private static boolean class_declaration_start_after_no_modifiers1_1_0(PsiBuilder b, int l)", "static boolean class_declaration_start_after_no_modifiers2(PsiBuilder b, int l)", "static boolean class_declaration_start_no_modifiers(PsiBuilder b, int l)", "static boolean class_declaration_tail(PsiBuilder b, int l)", "private static boolean class_declaration_tail_0_0(PsiBuilder b, int l)", "static boolean class_definition_header(PsiBuilder b, int l)", "private static boolean class_definition_header_1(PsiBuilder b, int l)", "public static boolean class_initializer(PsiBuilder b, int l)", "public static boolean class_initializer_modifier_list(PsiBuilder b, int l)", "private static boolean class_initializer_modifier_list_1(PsiBuilder b, int l)", "static boolean class_level(PsiBuilder b, int l)", "private static boolean class_level_2(PsiBuilder b, int l)", "static boolean class_level_end(PsiBuilder b, int l)", "private static boolean class_level_end_2(PsiBuilder b, int l)", "static boolean class_level_item(PsiBuilder b, int l, Parser _item)", "static boolean class_level_start(PsiBuilder b, int l)", "static boolean class_member(PsiBuilder b, int l)", "static boolean class_members(PsiBuilder b, int l)", "private static boolean class_members_0(PsiBuilder b, int l)", "public static boolean class_type_definition(PsiBuilder b, int l)", "public static boolean class_type_element(PsiBuilder b, int l)", "static boolean clear_variants_and_fail(PsiBuilder b, int l)", "public static boolean closure(PsiBuilder b, int l)", "static boolean closure_arrow(PsiBuilder b, int l)", "static boolean closure_header(PsiBuilder b, int l)", "static boolean closure_header_with_arrow(PsiBuilder b, int l)", "private static boolean closure_header_with_arrow_0(PsiBuilder b, int l)", "private static boolean closure_header_with_arrow_1(PsiBuilder b, int l)", "static boolean closure_impl(PsiBuilder b, int l)", "static boolean closure_parameter(PsiBuilder b, int l)", "public static boolean closure_parameter_list(PsiBuilder b, int l)", "private static boolean closure_parameter_list_0_0(PsiBuilder b, int l)", "public static boolean closure_switch_aware(PsiBuilder b, int l)", "public static boolean code_reference(PsiBuilder b, int l)", "static boolean code_reference_base(PsiBuilder b, int l)", "private static boolean code_reference_base_1(PsiBuilder b, int l)", "static boolean code_reference_dot(PsiBuilder b, int l)", "private static boolean code_reference_dot_1(PsiBuilder b, int l)", "static boolean code_reference_identifier(PsiBuilder b, int l)", "static boolean code_reference_identifiers(PsiBuilder b, int l)", "private static boolean code_reference_identifiers_2(PsiBuilder b, int l)", "private static boolean code_reference_identifiers_2_1(PsiBuilder b, int l)", "private static boolean code_reference_identifiers_2_1_1(PsiBuilder b, int l)", "static boolean code_reference_identifiers_soft(PsiBuilder b, int l)", "static boolean code_reference_part(PsiBuilder b, int l)", "private static boolean code_reference_part_1(PsiBuilder b, int l)", "private static boolean code_reference_part_1_0(PsiBuilder b, int l)", "public static boolean code_reference_tail(PsiBuilder b, int l)", "static boolean comma_list(PsiBuilder b, int l, Parser _item)", "static boolean comma_list_p(PsiBuilder b, int l, Parser _item)", "public static boolean compact_constructor(PsiBuilder b, int l)", "private static boolean compact_constructor_3(PsiBuilder b, int l)", "private static boolean compact_constructor_3_0(PsiBuilder b, int l)", "static boolean compact_constructor_lookahead(PsiBuilder b, int l)", "private static boolean compact_constructor_lookahead_0(PsiBuilder b, int l)", "static boolean compound_string(PsiBuilder b, int l, Parser _begin, Parser _content, Parser _end)", "private static boolean compound_string_1(PsiBuilder b, int l, Parser _content)", "private static boolean compound_string_1_0(PsiBuilder b, int l, Parser _content)", "public static boolean constructor(PsiBuilder b, int l)", "private static boolean constructor_3(PsiBuilder b, int l)", "private static boolean constructor_3_0(PsiBuilder b, int l)", "public static boolean constructor_block(PsiBuilder b, int l)", "private static boolean constructor_block_2(PsiBuilder b, int l)", "private static boolean constructor_block_2_0(PsiBuilder b, int l)", "public static boolean constructor_call_expression(PsiBuilder b, int l)", "private static boolean constructor_call_expression_0(PsiBuilder b, int l)", "private static boolean constructor_call_expression_0_0(PsiBuilder b, int l)", "static boolean constructor_identifier(PsiBuilder b, int l)", "public static boolean continue_statement(PsiBuilder b, int l)", "private static boolean continue_statement_1(PsiBuilder b, int l)", "static Parser d_modifiers_$(Parser _after_modifiers)", "static boolean d_modifiers(PsiBuilder b, int l, Parser _after_modifiers)", "static Parser d_no_modifiers_$(Parser _after_no_modifiers)", "static boolean d_no_modifiers(PsiBuilder b, int l, Parser _after_no_modifiers)", "static boolean declaration(PsiBuilder b, int l, Parser _after_modifiers, Parser _after_no_modifiers)", "static boolean declaration_lookahead(PsiBuilder b, int l)", "private static boolean declaration_lookahead_1(PsiBuilder b, int l)", "static boolean declaration_start_modifiers(PsiBuilder b, int l)", "static boolean declaration_type_element(PsiBuilder b, int l)", "static boolean def_modifier(PsiBuilder b, int l)", "private static boolean def_modifier_1(PsiBuilder b, int l)", "public static boolean default_section(PsiBuilder b, int l)", "static boolean definitely_type_element(PsiBuilder b, int l)", "static boolean diamond_type_argument_list(PsiBuilder b, int l)", "public static boolean disjunction_type_element(PsiBuilder b, int l)", "static boolean disjunction_type_element_part(PsiBuilder b, int l)", "private static boolean disjunction_type_element_part_1(PsiBuilder b, int l)", "public static boolean do_while_statement(PsiBuilder b, int l)", "private static boolean do_while_statement_7(PsiBuilder b, int l)", "public static boolean doc_reference(PsiBuilder b, int l)", "private static boolean doc_reference_1(PsiBuilder b, int l)", "public static boolean doc_reference_tail(PsiBuilder b, int l)", "public static boolean dollar_slashy_literal(PsiBuilder b, int l)", "private static boolean dollar_slashy_literal_1(PsiBuilder b, int l)", "private static boolean dollar_slashy_literal_2(PsiBuilder b, int l)", "static boolean dollar_slashy_string(PsiBuilder b, int l)", "static boolean double_block_statement(PsiBuilder b, int l)", "static boolean ellipsis(PsiBuilder b, int l)", "static boolean else_branch(PsiBuilder b, int l)", "static boolean empty(PsiBuilder b, int l)", "public static boolean empty_annotation_argument_list(PsiBuilder b, int l)", "public static boolean empty_argument_list(PsiBuilder b, int l)", "public static boolean empty_extends_clause(PsiBuilder b, int l)", "public static boolean empty_implements_clause(PsiBuilder b, int l)", "static boolean empty_list(PsiBuilder b, int l)", "static boolean empty_map(PsiBuilder b, int l)", "public static boolean empty_modifier_list(PsiBuilder b, int l)", "public static boolean empty_parameter_list(PsiBuilder b, int l)", "static boolean empty_parens(PsiBuilder b, int l)", "private static boolean empty_parens_2(PsiBuilder b, int l)", "public static boolean empty_permits_clause(PsiBuilder b, int l)", "public static boolean empty_throws_clause(PsiBuilder b, int l)", "public static boolean empty_type_parameter_bounds_list(PsiBuilder b, int l)", "public static boolean enum_body(PsiBuilder b, int l)", "public static boolean enum_constant(PsiBuilder b, int l)", "private static boolean enum_constant_3(PsiBuilder b, int l)", "private static boolean enum_constant_4(PsiBuilder b, int l)", "public static boolean enum_constant_initializer(PsiBuilder b, int l)", "public static boolean enum_constants(PsiBuilder b, int l)", "private static boolean enum_constants_1(PsiBuilder b, int l)", "private static boolean enum_constants_1_0(PsiBuilder b, int l)", "private static boolean enum_constants_1_0_0(PsiBuilder b, int l)", "private static boolean enum_constants_2(PsiBuilder b, int l)", "private static boolean enum_constants_2_0(PsiBuilder b, int l)", "static boolean enum_constants_separated(PsiBuilder b, int l)", "static boolean enum_definition_header(PsiBuilder b, int l)", "private static boolean enum_definition_header_1(PsiBuilder b, int l)", "static boolean enum_members(PsiBuilder b, int l)", "private static boolean enum_members_0(PsiBuilder b, int l)", "public static boolean enum_type_definition(PsiBuilder b, int l)", "static boolean expect_type(PsiBuilder b, int l)", "public static boolean expression_lambda_body(PsiBuilder b, int l)", "public static boolean expression_list(PsiBuilder b, int l)", "private static boolean expression_list_2(PsiBuilder b, int l)", "private static boolean expression_list_2_0(PsiBuilder b, int l)", "public static boolean expression_or_application(PsiBuilder b, int l)", "static boolean expression_or_application_except_zero_params_closure(PsiBuilder b, int l)", "private static boolean expression_or_application_except_zero_params_closure_0(PsiBuilder b, int l)", "private static boolean expression_or_application_except_zero_params_closure_1(PsiBuilder b, int l)", "private static boolean expression_or_application_except_zero_params_closure_1_0(PsiBuilder b, int l)", "private static boolean expression_or_application_except_zero_params_closure_1_2(PsiBuilder b, int l)", "static boolean expression_or_application_inner(PsiBuilder b, int l)", "private static boolean expression_or_application_inner_1(PsiBuilder b, int l)", "private static boolean expression_or_application_inner_1_0(PsiBuilder b, int l)", "public static boolean expression_single_parameter_lambda_body(PsiBuilder b, int l)", "static boolean expression_start(PsiBuilder b, int l)", "static boolean expression_statement(PsiBuilder b, int l)", "static boolean extended_statement_item(PsiBuilder b, int l)", "static boolean extends_list_item(PsiBuilder b, int l)", "private static boolean extends_list_item_0(PsiBuilder b, int l)", "static boolean extends_list_item_recovered(PsiBuilder b, int l)", "static boolean extends_recovery(PsiBuilder b, int l)", "private static boolean extends_recovery_0(PsiBuilder b, int l)", "static boolean fast_colon(PsiBuilder b, int l)", "static boolean fast_comma(PsiBuilder b, int l)", "static boolean fast_dollar_slashy_content(PsiBuilder b, int l)", "static boolean fast_l_angle(PsiBuilder b, int l)", "static boolean fast_question(PsiBuilder b, int l)", "static boolean fast_slashy_content(PsiBuilder b, int l)", "static boolean fast_string_content(PsiBuilder b, int l)", "public static boolean field(PsiBuilder b, int l)", "public static boolean field_declaration(PsiBuilder b, int l)", "private static boolean field_declaration_1(PsiBuilder b, int l)", "private static boolean field_declaration_1_0(PsiBuilder b, int l)", "public static boolean finally_clause(PsiBuilder b, int l)", "private static boolean finally_clause_1(PsiBuilder b, int l)", "static boolean followed_by_semi(PsiBuilder b, int l)", "static boolean for_body(PsiBuilder b, int l)", "private static boolean for_body_0(PsiBuilder b, int l)", "static boolean for_clause(PsiBuilder b, int l)", "static boolean for_clause_initialization(PsiBuilder b, int l)", "static boolean for_clause_update(PsiBuilder b, int l)", "static boolean for_header(PsiBuilder b, int l)", "public static boolean for_in_clause(PsiBuilder b, int l)", "private static boolean for_in_clause_1(PsiBuilder b, int l)", "public static boolean for_in_parameter(PsiBuilder b, int l)", "private static boolean for_in_parameter_0(PsiBuilder b, int l)", "private static boolean for_in_parameter_0_2(PsiBuilder b, int l)", "public static boolean for_statement(PsiBuilder b, int l)", "private static boolean for_statement_1(PsiBuilder b, int l)", "static boolean for_variable_declaration(PsiBuilder b, int l)", "static boolean fvd_after_modifiers(PsiBuilder b, int l)", "static boolean fvd_after_no_modifiers(PsiBuilder b, int l)", "private static boolean fvd_after_no_modifiers_0(PsiBuilder b, int l)", "static boolean fvd_modifiers_type(PsiBuilder b, int l)", "static boolean fvd_tail(PsiBuilder b, int l)", "public static boolean fvd_tuple_tail(PsiBuilder b, int l)", "static boolean general_switch_section(PsiBuilder b, int l)", "private static boolean general_switch_section_0(PsiBuilder b, int l)", "private static boolean general_switch_section_1(PsiBuilder b, int l)", "static boolean if_header(PsiBuilder b, int l)", "public static boolean if_statement(PsiBuilder b, int l)", "static boolean implement_list_item_recovered(PsiBuilder b, int l)", "static boolean implements_list_item(PsiBuilder b, int l)", "private static boolean implements_list_item_0(PsiBuilder b, int l)", "static boolean implements_recovery(PsiBuilder b, int l)", "private static boolean implements_recovery_0(PsiBuilder b, int l)", "public static boolean import_$(PsiBuilder b, int l)", "private static boolean import_2(PsiBuilder b, int l)", "private static boolean import_3(PsiBuilder b, int l)", "private static boolean import_5(PsiBuilder b, int l)", "private static boolean import_6(PsiBuilder b, int l)", "public static boolean import_alias(PsiBuilder b, int l)", "static boolean import_star(PsiBuilder b, int l)", "public static boolean index_expression_argument_list(PsiBuilder b, int l)", "private static boolean index_expression_argument_list_0(PsiBuilder b, int l)", "private static boolean index_expression_argument_list_3(PsiBuilder b, int l)", "static boolean instanceof_expression_tail(PsiBuilder b, int l)", "private static boolean instanceof_expression_tail_0(PsiBuilder b, int l)", "private static boolean instanceof_expression_tail_2(PsiBuilder b, int l)", "static boolean interface_definition_header(PsiBuilder b, int l)", "private static boolean interface_definition_header_1(PsiBuilder b, int l)", "private static boolean interface_definition_header_3(PsiBuilder b, int l)", "public static boolean interface_type_definition(PsiBuilder b, int l)", "static boolean l_paren_variant(PsiBuilder b, int l)", "private static boolean l_paren_variant_0(PsiBuilder b, int l)", "public static boolean labeled_statement(PsiBuilder b, int l)", "static boolean lambda_body(PsiBuilder b, int l)", "private static boolean lambda_body_0(PsiBuilder b, int l)", "private static boolean lambda_body_0_0(PsiBuilder b, int l)", "static boolean lambda_expression_base(PsiBuilder b, int l)", "static boolean lambda_expression_head(PsiBuilder b, int l)", "public static boolean lambda_parameter_list(PsiBuilder b, int l)", "private static boolean lambda_parameter_list_1(PsiBuilder b, int l)", "private static boolean lambda_parameter_list_1_1_0(PsiBuilder b, int l)", "public static boolean lazy_block(PsiBuilder b, int l)", "public static boolean lazy_block_lambda_body(PsiBuilder b, int l)", "public static boolean lazy_constructor_block(PsiBuilder b, int l)", "public static boolean left_shift_sign(PsiBuilder b, int l)", "static boolean local_variable_declaration(PsiBuilder b, int l)", "public static boolean lowercase_type_element(PsiBuilder b, int l)", "private static boolean lowercase_type_element_1(PsiBuilder b, int l)", "private static boolean lowercase_type_element_1_0(PsiBuilder b, int l)", "private static boolean lowercase_type_element_1_0_0(PsiBuilder b, int l)", "static boolean mandatory_expression(PsiBuilder b, int l)", "private static boolean mandatory_expression_0(PsiBuilder b, int l)", "public static boolean map_argument(PsiBuilder b, int l)", "public static boolean map_argument_label(PsiBuilder b, int l)", "static boolean mb_declaration_type_element(PsiBuilder b, int l)", "private static boolean mb_declaration_type_element_0(PsiBuilder b, int l)", "static boolean mb_initializer(PsiBuilder b, int l)", "private static boolean mb_initializer_0(PsiBuilder b, int l)", "private static boolean mb_initializer_0_1(PsiBuilder b, int l)", "static boolean mb_nl(PsiBuilder b, int l)", "static boolean mb_nl_group(PsiBuilder b, int l, Parser _something)", "private static Parser mb_nl_group_1_0_$(Parser _something)", "private static boolean mb_nl_group_1_0(PsiBuilder b, int l, Parser _something)", "static boolean mb_nl_inside_parentheses(PsiBuilder b, int l)", "private static boolean mb_nl_inside_parentheses_0(PsiBuilder b, int l)", "static boolean mb_question(PsiBuilder b, int l)", "static boolean mb_separators(PsiBuilder b, int l)", "static boolean mb_type_element(PsiBuilder b, int l)", "static boolean mb_type_parameter_list(PsiBuilder b, int l)", "private static boolean mb_type_parameter_list_0(PsiBuilder b, int l)", "public static boolean method(PsiBuilder b, int l)", "private static boolean method_3(PsiBuilder b, int l)", "private static boolean method_3_0(PsiBuilder b, int l)", "static boolean method_identifier(PsiBuilder b, int l)", "static boolean method_lookahead(PsiBuilder b, int l)", "private static boolean method_lookahead_0(PsiBuilder b, int l)", "public static boolean method_parameter_list(PsiBuilder b, int l)", "static boolean method_reference_dot(PsiBuilder b, int l)", "static boolean methods_tail(PsiBuilder b, int l)", "private static boolean methods_tail_2(PsiBuilder b, int l)", "static boolean modifier(PsiBuilder b, int l)", "private static boolean modifier_9(PsiBuilder b, int l)", "private static boolean modifier_9_1(PsiBuilder b, int l)", "public static boolean modifier_list(PsiBuilder b, int l)", "static boolean multi_tuple_assignment(PsiBuilder b, int l)", "private static boolean multi_tuple_assignment_2(PsiBuilder b, int l)", "static boolean naked_method_declaration_start(PsiBuilder b, int l)", "private static boolean naked_method_declaration_start_2(PsiBuilder b, int l)", "public static boolean named_argument(PsiBuilder b, int l)", "static boolean named_argument_tail(PsiBuilder b, int l)", "private static boolean named_argument_tail_1(PsiBuilder b, int l)", "static boolean new_expression_creator(PsiBuilder b, int l)", "private static boolean new_expression_creator_1(PsiBuilder b, int l)", "static boolean new_expression_tail(PsiBuilder b, int l)", "private static boolean new_expression_tail_2(PsiBuilder b, int l)", "static boolean new_expression_type(PsiBuilder b, int l)", "static boolean nl(PsiBuilder b, int l)", "static boolean nl_extends(PsiBuilder b, int l)", "static boolean nl_implements(PsiBuilder b, int l)", "static boolean nl_non_empty_extends(PsiBuilder b, int l)", "static boolean nl_non_empty_implements(PsiBuilder b, int l)", "static boolean nl_non_empty_permits(PsiBuilder b, int l)", "static boolean nl_permits(PsiBuilder b, int l)", "static boolean nl_throws(PsiBuilder b, int l)", "private static boolean nl_throws_0(PsiBuilder b, int l)", "private static boolean nl_throws_0_0(PsiBuilder b, int l)", "private static boolean nl_throws_0_0_1(PsiBuilder b, int l)", "private static boolean nl_throws_0_0_1_0(PsiBuilder b, int l)", "private static boolean nl_throws_1(PsiBuilder b, int l)", "static boolean nls(PsiBuilder b, int l)", "static boolean non_empty_annotation_list(PsiBuilder b, int l)", "static boolean non_empty_argument_list(PsiBuilder b, int l)", "private static boolean non_empty_argument_list_2(PsiBuilder b, int l)", "public static boolean non_empty_extends_clause(PsiBuilder b, int l)", "public static boolean non_empty_implements_clause(PsiBuilder b, int l)", "static boolean non_empty_list_or_map(PsiBuilder b, int l)", "private static boolean non_empty_list_or_map_3(PsiBuilder b, int l)", "public static boolean non_empty_modifier_list(PsiBuilder b, int l)", "private static boolean non_empty_modifier_list_0_0(PsiBuilder b, int l)", "public static boolean non_empty_permits_clause(PsiBuilder b, int l)", "public static boolean non_empty_throws_clause(PsiBuilder b, int l)", "static boolean non_empty_type_argument_list(PsiBuilder b, int l)", "static boolean not_colon(PsiBuilder b, int l)", "public static boolean open_block(PsiBuilder b, int l)", "static boolean open_block_impl(PsiBuilder b, int l)", "public static boolean open_block_switch_aware(PsiBuilder b, int l)", "static boolean optional_expression(PsiBuilder b, int l)", "private static boolean optional_expression_0(PsiBuilder b, int l)", "private static boolean optional_expression_2(PsiBuilder b, int l)", "static boolean p_parenthesized_expression_inner(PsiBuilder b, int l)", "public static boolean package_definition(PsiBuilder b, int l)", "private static boolean package_definition_2(PsiBuilder b, int l)", "static boolean package_name(PsiBuilder b, int l)", "public static boolean parameter(PsiBuilder b, int l)", "static boolean parameter_start(PsiBuilder b, int l)", "static boolean parameter_start_after_modifiers(PsiBuilder b, int l)", "private static boolean parameter_start_after_modifiers_0(PsiBuilder b, int l)", "private static boolean parameter_start_after_modifiers_1(PsiBuilder b, int l)", "static boolean parameter_start_after_no_modifiers(PsiBuilder b, int l)", "private static boolean parameter_start_after_no_modifiers_0(PsiBuilder b, int l)", "private static boolean parameter_start_after_no_modifiers_0_1(PsiBuilder b, int l)", "static boolean parameter_start_modifiers(PsiBuilder b, int l)", "static boolean parameter_start_no_modifiers(PsiBuilder b, int l)", "static boolean parameter_type_element(PsiBuilder b, int l)", "private static boolean parameter_type_element_0(PsiBuilder b, int l)", "private static boolean parameter_type_element_1(PsiBuilder b, int l)", "private static boolean parameter_type_element_2(PsiBuilder b, int l)", "private static boolean parameter_type_element_2_1(PsiBuilder b, int l)", "private static boolean parameter_type_element_2_1_0(PsiBuilder b, int l)", "private static boolean parameter_type_element_3(PsiBuilder b, int l)", "static boolean parameter_type_element_silent(PsiBuilder b, int l)", "static boolean paren_argument_list_inner(PsiBuilder b, int l)", "private static boolean paren_argument_list_inner_0(PsiBuilder b, int l)", "static boolean paren_argument_list_item(PsiBuilder b, int l)", "static boolean paren_list(PsiBuilder b, int l, Parser _item)", "private static boolean paren_list_1(PsiBuilder b, int l, Parser _item)", "private static boolean paren_list_1_2(PsiBuilder b, int l)", "static boolean paren_list_inner(PsiBuilder b, int l, Parser _item)", "private static boolean paren_list_inner_1(PsiBuilder b, int l, Parser _item)", "static boolean paren_list_item(PsiBuilder b, int l, Parser _item)", "static boolean paren_list_item_recovery(PsiBuilder b, int l)", "private static boolean paren_list_item_recovery_0(PsiBuilder b, int l)", "static boolean paren_list_tail(PsiBuilder b, int l, Parser _item)", "static boolean parse_annotation_declaration(PsiBuilder b, int l)", "static boolean parse_argument(PsiBuilder b, int l)", "static boolean parse_block_declaration(PsiBuilder b, int l)", "static boolean parse_catch_parameter(PsiBuilder b, int l)", "static boolean parse_class_declaration(PsiBuilder b, int l)", "static boolean parse_parameter(PsiBuilder b, int l)", "static boolean permits_list_item(PsiBuilder b, int l)", "private static boolean permits_list_item_0(PsiBuilder b, int l)", "static boolean permits_list_recovered(PsiBuilder b, int l)", "static boolean permits_recovery(PsiBuilder b, int l)", "private static boolean permits_recovery_0(PsiBuilder b, int l)", "public static boolean primitive_type_element(PsiBuilder b, int l)", "static boolean property_dot(PsiBuilder b, int l)", "static boolean property_expression_identifiers(PsiBuilder b, int l)", "public static boolean qualified_class_type_element(PsiBuilder b, int l)", "public static boolean qualified_code_reference(PsiBuilder b, int l)", "private static boolean qualified_code_reference_2(PsiBuilder b, int l)", "static boolean qualified_name(PsiBuilder b, int l)", "static boolean qualified_reference_expression_identifiers(PsiBuilder b, int l)", "public static boolean record_body(PsiBuilder b, int l)", "static boolean record_definition_header(PsiBuilder b, int l)", "private static boolean record_definition_header_1(PsiBuilder b, int l)", "public static boolean record_type_definition(PsiBuilder b, int l)", "static boolean reference_dot(PsiBuilder b, int l)", "static boolean regex_literal(PsiBuilder b, int l)", "static boolean relational_operator(PsiBuilder b, int l)", "private static boolean relational_operator_0(PsiBuilder b, int l)", "private static boolean relational_operator_0_1(PsiBuilder b, int l)", "private static boolean relational_operator_2(PsiBuilder b, int l)", "private static boolean relational_operator_2_1(PsiBuilder b, int l)", "public static boolean return_statement(PsiBuilder b, int l)", "private static boolean return_statement_1(PsiBuilder b, int l)", "public static boolean right_shift_sign(PsiBuilder b, int l)", "public static boolean right_shift_unsigned_sign(PsiBuilder b, int l)", "static boolean root(PsiBuilder b, int l)", "private static boolean root_1(PsiBuilder b, int l)", "static boolean separated_item(PsiBuilder b, int l, Parser _item_end, Parser _element, Parser _element_start)", "static boolean separated_item_head(PsiBuilder b, int l, Parser _item_end, Parser _element, Parser _separated_recovery)", "private static boolean separated_item_head_0(PsiBuilder b, int l, Parser _item_end, Parser _separated_recovery)", "static Parser separated_recovery_$(Parser _item_end, Parser _element_start)", "static boolean separated_recovery(PsiBuilder b, int l, Parser _item_end, Parser _element_start)", "private static boolean separated_recovery_0(PsiBuilder b, int l, Parser _item_end, Parser _element_start)", "static boolean separator(PsiBuilder b, int l)", "static boolean separators(PsiBuilder b, int l)", "static boolean shift_sign(PsiBuilder b, int l)", "public static boolean short_code_reference(PsiBuilder b, int l)", "public static boolean short_simple_reference(PsiBuilder b, int l)", "static boolean simple_literal_tokens(PsiBuilder b, int l)", "public static boolean simple_reference(PsiBuilder b, int l)", "private static boolean simple_reference_1(PsiBuilder b, int l)", "public static boolean simple_reference_tail(PsiBuilder b, int l)", "static boolean single_parameter_lambda_body(PsiBuilder b, int l)", "static boolean single_parameter_lambda_expression_base(PsiBuilder b, int l)", "static boolean single_parameter_lambda_expression_head(PsiBuilder b, int l)", "public static boolean single_parameter_lambda_parameter(PsiBuilder b, int l)", "private static boolean single_parameter_lambda_parameter_1(PsiBuilder b, int l)", "public static boolean single_parameter_lambda_parameter_list(PsiBuilder b, int l)", "private static boolean single_parameter_lambda_parameter_list_0(PsiBuilder b, int l)", "public static boolean single_tuple(PsiBuilder b, int l)", "static boolean single_tuple_assignment(PsiBuilder b, int l)", "public static boolean slashy_literal(PsiBuilder b, int l)", "private static boolean slashy_literal_2(PsiBuilder b, int l)", "static boolean slashy_string(PsiBuilder b, int l)", "public static boolean soft_type_argument_list(PsiBuilder b, int l)", "private static boolean soft_type_argument_list_2(PsiBuilder b, int l)", "static boolean soft_type_argument_list_item(PsiBuilder b, int l)", "static boolean soft_type_argument_list_tail(PsiBuilder b, int l)", "public static boolean spread_list_argument(PsiBuilder b, int l)", "private static boolean spread_list_argument_0(PsiBuilder b, int l)", "public static boolean statement(PsiBuilder b, int l)", "static boolean statement_keywords(PsiBuilder b, int l)", "static boolean statement_start(PsiBuilder b, int l)", "public static boolean string_content(PsiBuilder b, int l, Parser _content)", "public static boolean string_injection(PsiBuilder b, int l)", "static boolean string_injection_body(PsiBuilder b, int l)", "private static boolean string_injection_body_3(PsiBuilder b, int l)", "static boolean string_literal_as_reference(PsiBuilder b, int l)", "private static boolean string_literal_as_reference_1(PsiBuilder b, int l)", "private static boolean string_literal_as_reference_1_0(PsiBuilder b, int l)", "private static boolean string_literal_as_reference_1_1(PsiBuilder b, int l)", "static boolean string_literal_tokens(PsiBuilder b, int l)", "static boolean switch_body(PsiBuilder b, int l)", "private static boolean switch_body_2(PsiBuilder b, int l)", "static boolean switch_expr_remainder(PsiBuilder b, int l)", "public static boolean switch_expression_list(PsiBuilder b, int l)", "private static boolean switch_expression_list_1(PsiBuilder b, int l)", "private static boolean switch_expression_list_1_0(PsiBuilder b, int l)", "public static boolean switch_statement(PsiBuilder b, int l)", "private static boolean switch_statement_4(PsiBuilder b, int l)", "public static boolean synchronized_statement(PsiBuilder b, int l)", "private static boolean synchronized_statement_5(PsiBuilder b, int l)", "static boolean ternary_tail(PsiBuilder b, int l)", "static boolean ternary_tail_pin(PsiBuilder b, int l)", "private static boolean ternary_tail_pin_2(PsiBuilder b, int l)", "public static boolean throw_statement(PsiBuilder b, int l)", "static boolean throws_list_item(PsiBuilder b, int l)", "static boolean top_level(PsiBuilder b, int l)", "static boolean top_level_end(PsiBuilder b, int l)", "static boolean top_level_item(PsiBuilder b, int l)", "static boolean top_level_start(PsiBuilder b, int l)", "static boolean top_levels(PsiBuilder b, int l)", "private static boolean top_levels_0(PsiBuilder b, int l)", "public static boolean traditional_for_clause(PsiBuilder b, int l)", "private static boolean traditional_for_clause_1(PsiBuilder b, int l)", "private static boolean traditional_for_clause_5(PsiBuilder b, int l)", "private static boolean traditional_for_clause_9(PsiBuilder b, int l)", "static boolean trait_definition_header(PsiBuilder b, int l)", "private static boolean trait_definition_header_1(PsiBuilder b, int l)", "public static boolean trait_type_definition(PsiBuilder b, int l)", "public static boolean try_resource_list(PsiBuilder b, int l)", "private static boolean try_resource_list_1(PsiBuilder b, int l)", "static boolean try_resource_list_item(PsiBuilder b, int l)", "static boolean try_resource_list_separator(PsiBuilder b, int l)", "private static boolean try_resource_list_separator_0(PsiBuilder b, int l)", "public static boolean try_statement(PsiBuilder b, int l)", "private static boolean try_statement_1(PsiBuilder b, int l)", "private static boolean try_statement_4(PsiBuilder b, int l)", "private static boolean try_statement_4_0(PsiBuilder b, int l)", "private static boolean try_statement_5(PsiBuilder b, int l)", "private static boolean try_statement_5_0(PsiBuilder b, int l)", "public static boolean tuple(PsiBuilder b, int l)", "private static boolean tuple_3(PsiBuilder b, int l)", "private static boolean tuple_3_0(PsiBuilder b, int l)", "static boolean tuple_initializer(PsiBuilder b, int l)", "public static boolean tuple_var_declaration(PsiBuilder b, int l)", "static boolean tuple_var_declaration_item(PsiBuilder b, int l)", "private static boolean tuple_var_declaration_item_1(PsiBuilder b, int l)", "private static boolean tuple_var_declaration_item_1_0(PsiBuilder b, int l)", "static boolean tuple_var_declaration_tuple(PsiBuilder b, int l)", "private static boolean tuple_var_declaration_tuple_2(PsiBuilder b, int l)", "private static boolean tuple_var_declaration_tuple_2_0(PsiBuilder b, int l)", "public static boolean tuple_variable(PsiBuilder b, int l)", "static boolean type_argument(PsiBuilder b, int l)", "public static boolean type_argument_list(PsiBuilder b, int l)", "static boolean type_argument_list_end(PsiBuilder b, int l)", "static boolean type_argument_list_item(PsiBuilder b, int l)", "public static boolean type_code_reference(PsiBuilder b, int l)", "static boolean type_definition(PsiBuilder b, int l)", "private static boolean type_definition_0(PsiBuilder b, int l)", "private static boolean type_definition_0_0(PsiBuilder b, int l)", "static boolean type_definition_tail(PsiBuilder b, int l)", "public static boolean type_element(PsiBuilder b, int l)", "private static boolean type_element_0(PsiBuilder b, int l)", "static boolean type_element_followed_by_identifier(PsiBuilder b, int l)", "public static boolean type_parameter(PsiBuilder b, int l)", "private static boolean type_parameter_1(PsiBuilder b, int l)", "static boolean type_parameter_bounds(PsiBuilder b, int l)", "private static boolean type_parameter_bounds_1(PsiBuilder b, int l)", "public static boolean type_parameter_bounds_list(PsiBuilder b, int l)", "static boolean type_parameter_bounds_tail(PsiBuilder b, int l)", "public static boolean type_parameter_list(PsiBuilder b, int l)", "static boolean type_parameters(PsiBuilder b, int l)", "private static boolean type_parameters_1(PsiBuilder b, int l)", "static boolean type_parameters_tail(PsiBuilder b, int l)", "public static boolean unqualified_class_type_element(PsiBuilder b, int l)", "static boolean var(PsiBuilder b, int l)", "private static boolean var_0(PsiBuilder b, int l)", "static boolean var_modifier(PsiBuilder b, int l)", "private static boolean var_modifier_1(PsiBuilder b, int l)", "private static boolean var_modifier_1_0(PsiBuilder b, int l)", "public static boolean variable(PsiBuilder b, int l)", "public static boolean variable_declaration_tail(PsiBuilder b, int l)", "private static boolean variable_declaration_tail_1(PsiBuilder b, int l)", "private static boolean variable_declaration_tail_1_0(PsiBuilder b, int l)", "static boolean variable_lookahead(PsiBuilder b, int l)", "private static boolean variable_lookahead_0(PsiBuilder b, int l)", "static boolean weak_keyword(PsiBuilder b, int l)", "static boolean weak_keyword_identifiers(PsiBuilder b, int l)", "static boolean while_body(PsiBuilder b, int l)", "static boolean while_header(PsiBuilder b, int l)", "public static boolean while_statement(PsiBuilder b, int l)", "static boolean wildcard_bound(PsiBuilder b, int l)", "private static boolean wildcard_bound_0(PsiBuilder b, int l)", "public static boolean wildcard_type_element(PsiBuilder b, int l)", "private static boolean wildcard_type_element_1(PsiBuilder b, int l)", "public static boolean yield_statement(PsiBuilder b, int l)", "public static boolean expression(PsiBuilder b, int l, int g)", "public static boolean expression_0(PsiBuilder b, int l, int g)", "private static boolean assignment_expression_0(PsiBuilder b, int l)", "public static boolean tuple_assignment_expression(PsiBuilder b, int l)", "private static boolean ternary_expression_0(PsiBuilder b, int l)", "private static boolean ternary_expression_0_1(PsiBuilder b, int l)", "private static boolean elvis_expression_0(PsiBuilder b, int l)", "private static boolean elvis_expression_0_1(PsiBuilder b, int l)", "public static boolean switch_expression(PsiBuilder b, int l)", "private static boolean switch_expression_7(PsiBuilder b, int l)", "private static boolean switch_expression_7_2(PsiBuilder b, int l)", "private static boolean lor_expression_0(PsiBuilder b, int l)", "private static boolean lor_expression_0_1(PsiBuilder b, int l)", "private static boolean land_expression_0(PsiBuilder b, int l)", "private static boolean land_expression_0_1(PsiBuilder b, int l)", "private static boolean bor_expression_0(PsiBuilder b, int l)", "private static boolean bor_expression_0_1(PsiBuilder b, int l)", "private static boolean xor_expression_0(PsiBuilder b, int l)", "private static boolean xor_expression_0_1(PsiBuilder b, int l)", "private static boolean band_expression_0(PsiBuilder b, int l)", "private static boolean band_expression_0_1(PsiBuilder b, int l)", "private static boolean equality_expression_0(PsiBuilder b, int l)", "private static boolean compare_expression_0(PsiBuilder b, int l)", "private static boolean compare_expression_0_1(PsiBuilder b, int l)", "private static boolean regex_find_expression_0(PsiBuilder b, int l)", "private static boolean regex_find_expression_0_1(PsiBuilder b, int l)", "private static boolean regex_match_expression_0(PsiBuilder b, int l)", "private static boolean regex_match_expression_0_1(PsiBuilder b, int l)", "private static boolean relational_expression_0(PsiBuilder b, int l)", "private static boolean in_expression_0(PsiBuilder b, int l)", "private static boolean in_expression_0_1(PsiBuilder b, int l)", "private static boolean instanceof_expression_0(PsiBuilder b, int l)", "private static boolean as_expression_0(PsiBuilder b, int l)", "private static boolean as_expression_0_1(PsiBuilder b, int l)", "private static boolean shift_expression_0(PsiBuilder b, int l)", "private static boolean range_expression_0(PsiBuilder b, int l)", "private static boolean range_expression_0_1(PsiBuilder b, int l)", "private static boolean additive_expression_0(PsiBuilder b, int l)", "private static boolean additive_expression_0_1(PsiBuilder b, int l)", "private static boolean multiplicative_expression_0(PsiBuilder b, int l)", "private static boolean multiplicative_expression_0_1(PsiBuilder b, int l)", "private static boolean power_expression_0(PsiBuilder b, int l)", "public static boolean prefix_unary_expression(PsiBuilder b, int l)", "private static boolean prefix_unary_expression_0(PsiBuilder b, int l)", "private static boolean prefix_unary_expression_0_0(PsiBuilder b, int l)", "public static boolean not_expression(PsiBuilder b, int l)", "private static boolean not_expression_0(PsiBuilder b, int l)", "private static boolean not_expression_0_0(PsiBuilder b, int l)", "public static boolean cast_expression(PsiBuilder b, int l)", "private static boolean cast_expression_0(PsiBuilder b, int l)", "private static boolean safe_index_expression_0(PsiBuilder b, int l)", "private static boolean postfix_unary_expression_0(PsiBuilder b, int l)", "private static boolean method_reference_expression_0(PsiBuilder b, int l)", "private static boolean method_reference_expression_0_0(PsiBuilder b, int l)", "private static boolean method_reference_expression_0_1(PsiBuilder b, int l)", "private static boolean attribute_expression_0(PsiBuilder b, int l)", "private static boolean attribute_expression_0_0(PsiBuilder b, int l)", "private static boolean qualified_reference_expression_0(PsiBuilder b, int l)", "private static boolean qualified_reference_expression_0_0(PsiBuilder b, int l)", "private static boolean property_expression_0(PsiBuilder b, int l)", "private static boolean property_expression_0_0(PsiBuilder b, int l)", "private static boolean property_expression_0_1_0(PsiBuilder b, int l)", "private static boolean property_expression_0_1_0_0(PsiBuilder b, int l)", "public static boolean lazy_closure(PsiBuilder b, int l)", "public static boolean lambda_expression(PsiBuilder b, int l)", "private static boolean lambda_expression_0(PsiBuilder b, int l)", "private static boolean lambda_expression_0_0(PsiBuilder b, int l)", "public static boolean single_parameter_lambda_expression(PsiBuilder b, int l)", "private static boolean single_parameter_lambda_expression_0(PsiBuilder b, int l)", "private static boolean single_parameter_lambda_expression_0_0(PsiBuilder b, int l)", "public static boolean list_or_map(PsiBuilder b, int l)", "public static boolean new_anonymous_expression(PsiBuilder b, int l)", "private static boolean new_anonymous_expression_1(PsiBuilder b, int l)", "public static boolean new_expression(PsiBuilder b, int l)", "private static boolean new_expression_1(PsiBuilder b, int l)", "public static boolean unqualified_reference_expression(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_0(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_0_0(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_0_1(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_3(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_3_1(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_3_1_0(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_4(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_4_0(PsiBuilder b, int l)", "private static boolean unqualified_reference_expression_4_1(PsiBuilder b, int l)", "public static boolean built_in_type_expression(PsiBuilder b, int l)", "public static boolean literal(PsiBuilder b, int l)", "public static boolean gstring(PsiBuilder b, int l)", "public static boolean regex(PsiBuilder b, int l)", "public static boolean parenthesized_expression(PsiBuilder b, int l)" ]
intellij-community/plugins/groovy/groovy-psi/gen/org/jetbrains/plugins/groovy/lang/parser/GroovyGeneratedParser.java
75,142
cleanUpOnLeave
@Override public void cleanUpOnLeave() { //just for the case if it can be executed during superclass initialization //noinspection ConstantValue if (myTags != null) { myTags.forEach(button -> button.showDropPlace(false)); } myDropFirst.setVisible(false); }
[ 24, 38 ]
@Override public void cleanUpOnLeave()
286
public final class BeforeRunComponent extends JPanel implements DnDTarget, Disposable
[ "private List<BeforeRunTaskProvider<BeforeRunTask<?>>> getProviders()", "private TaskButton createTag(BeforeRunTaskProvider<BeforeRunTask<?>> provider)", "private void updateAddLabel()", "public void showPopup()", "public void addOrRemove(Key<? extends BeforeRunTask<?>> providerId, boolean add)", "private void createTask(@Nullable AnActionEvent e, BeforeRunTaskProvider<BeforeRunTask<?>> myProvider)", "private void addTask(TaskButton tag, BeforeRunTask<?> task)", "public void reset(@NotNull RunnerAndConfigurationSettingsImpl s)", "private void buildPanel()", "public void apply(RunnerAndConfigurationSettingsImpl s)", "private @NotNull List<BeforeRunTask<?>> getEnabledTasks()", "public <T extends BeforeRunTask<?>> boolean hasEnabledTask(Key<T> providerId)", "@Override\n public void drop(DnDEvent event)", "@Override\n public void cleanUpOnLeave()", "private TagButton getReplaceButton(DnDEvent event)", "private TagButton getDropButton(TagButton replaceButton, DnDEvent event)", "@Override\n public boolean update(DnDEvent event)", "@Override\n public void dispose()", "@Override\n public void mouseClicked(MouseEvent e)", "@Override\n protected void layoutButtons()", "private void setTask(@Nullable BeforeRunTask<?> task)", "private void updateButton()", "private void showDropPlace(boolean show)", "@Override\n public boolean canStartDragging(DnDAction action, @NotNull Point dragOrigin)", "@Override\n public DnDDragStartBean startDragging(DnDAction action, @NotNull Point dragOrigin)", "@Override\n public String toString()", "@Override\n public void actionPerformed(@NotNull AnActionEvent e)", "@Override\n public boolean isDumbAware()" ]
intellij-community/platform/execution-impl/src/com/intellij/execution/ui/BeforeRunComponent.java
318,227
visitData
public void visitData(@Nullable Function visitor) { if (visitor == null) { return; } @SuppressWarnings("unchecked") T newData = (T) visitor.apply(getData()); if (newData != null) { data = newData; } }
[ 12, 21 ]
public void visitData(@Nullable Function visitor)
238
public class DataNode<T> implements UserDataHolderEx, Serializable
[ "public boolean isReady()", "@Nullable\n public DataNode<?> getParent()", "@NotNull\n public <T> DataNode<T> createChild(@NotNull Key<T> key, @NotNull T data)", "@NotNull\n public Key<T> getKey()", "@NotNull\n public T getData()", "public boolean isIgnored()", "public void setIgnored(boolean ignored)", "public void visitData(@Nullable Function visitor)", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public <T> T getData(@NotNull Key<T> key)", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public <T> DataNode<T> getDataNode(@NotNull Key<T> key)", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public <P> DataNode<P> getParent(@NotNull Class<P> dataClass)", "public void addChild(@NotNull DataNode<?> child)", "private void doAddChild(@NotNull DataNode<?> child)", "private void initChildren(@Nullable List<DataNode<?>> children)", "@NotNull\n public Collection<DataNode<?>> getChildren()", "@Override\n public int hashCode()", "@Override\n public boolean equals(Object o)", "@Override\n public String toString()", "public void clear(boolean removeFromGraph)", "@NotNull\n public DataNode<T> graphCopy()", "@NotNull\n public DataNode<T> nodeCopy()", "@Nullable\n @Override\n public <U> U getUserData(@NotNull com.intellij.openapi.util.Key<U> key)", "@Override\n public <U> void putUserData(@NotNull com.intellij.openapi.util.Key<U> key, U value)", "public <U> void removeUserData(@NotNull com.intellij.openapi.util.Key<U> key)", "@NotNull\n @Override\n public <D> D putUserDataIfAbsent(@NotNull com.intellij.openapi.util.Key<D> key, @NotNull D value)", "@Override\n public <D> boolean replace(@NotNull com.intellij.openapi.util.Key<D> key, @Nullable D oldValue, @Nullable D newValue)", "public <T> void putCopyableUserData(@NotNull com.intellij.openapi.util.Key<T> key, T value)", "public <T> T getCopyableUserData(@NotNull com.intellij.openapi.util.Key<T> key)", "public boolean validateData()", "@NotNull\n public static <T> DataNode<T> nodeCopy(@NotNull DataNode<T> dataNode)", "@Nullable\n private UserDataHolderBase getUserDataHolder()", "@NotNull\n private UserDataHolderBase getOrCreateUserDataHolder()", "@NotNull\n private static <T> DataNode<T> copy(@NotNull DataNode<T> dataNode, @Nullable DataNode<?> newParent)", "public final void visit(@NotNull Consumer<? super DataNode<?>> consumer)" ]
intellij-community/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/DataNode.java
243,489
getErrorOutputAsJoinedString
public @NotNull @NlsSafe String getErrorOutputAsJoinedString() { return StringUtil.join(cleanup(getErrorOrStdOutput()), "\n"); }
[ 32, 60 ]
public @NotNull @NlsSafe String getErrorOutputAsJoinedString()
134
public class GitCommandResult
[ "static @NotNull GitCommandResult withAuthentication(@NotNull GitCommandResult result, boolean authenticationFailed)", "public boolean success()", "public boolean success(int... ignoredErrorCodes)", "public @NotNull List<String> getOutput()", "public int getExitCode()", "public boolean isAuthenticationFailed()", "public @NotNull List<String> getErrorOutput()", "@Override\n public @NonNls String toString()", "public @NotNull @NlsSafe @NlsContexts.NotificationContent String getErrorOutputAsHtmlString()", "public @NotNull @NlsSafe String getErrorOutputAsJoinedString()", "private @NotNull @NlsSafe List<String> getErrorOrStdOutput()", "public @NotNull @NlsSafe String getOutputAsJoinedString()", "public @NotNull @NlsSafe String getOutputOrThrow(int... ignoredErrorCodes)", "public void throwOnError(int... ignoredErrorCodes)", "static @NotNull GitCommandResult startError(@NotNull @Nls String error)", "public static @NotNull GitCommandResult error(@NotNull @Nls String error)", "@Deprecated\n public boolean cancelled()", "private static @NotNull Collection<String> cleanup(@NotNull Collection<String> errorOutput)", "protected boolean hasStartFailed()" ]
intellij-community/plugins/git4idea/src/git4idea/commands/GitCommandResult.java
60,445
isValid
@Override public boolean isValid() { return true; }
[ 27, 34 ]
@Override public boolean isValid()
59
final class CoreJarVirtualFile extends VirtualFile
[ "void setChildren(VirtualFile[] children)", "@Override\n public @NotNull String getName()", "@Override\n public @NotNull CharSequence getNameSequence()", "@Override\n public @NotNull VirtualFileSystem getFileSystem()", "@Override\n public @NotNull String getPath()", "@Override\n public boolean isWritable()", "@Override\n public boolean isDirectory()", "@Override\n public boolean isValid()", "@Override\n public VirtualFile getParent()", "@Override\n public VirtualFile[] getChildren()", "@Override\n public @NotNull OutputStream getOutputStream(Object requestor, long newModificationStamp, long newTimeStamp)", "@Override\n public byte @NotNull [] contentsToByteArray()", "@Override\n public long getTimeStamp()", "@Override\n public long getLength()", "@Override\n public void refresh(boolean asynchronous, boolean recursive, Runnable postRunnable)", "@Override\n public @NotNull InputStream getInputStream()", "@Override\n public long getModificationStamp()" ]
intellij-community/platform/core-impl/src/com/intellij/openapi/vfs/impl/jar/CoreJarVirtualFile.java
253,006
createInstallCallback
private void createInstallCallback(@NotNull PluginId id) { ActionCallback callback = new ActionCallback(); ourInstallCallbacks.put(id, callback); myLocalInstallCallbacks.put(id, callback); }
[ 13, 34 ]
private void createInstallCallback(@NotNull PluginId id)
204
@ApiStatus.Internal public final class PluginInstallOperation
[ "private static void removeInstallCallback(@NotNull PluginId id, @NotNull ActionCallback callback, boolean isDone)", "private void createInstallCallback(@NotNull PluginId id)", "public void setDownloadService(MarketplacePluginDownloadService downloadService)", "public void setAllowInstallWithoutRestart(boolean allowInstallWithoutRestart)", "public List<PendingDynamicPluginInstall> getPendingDynamicPluginInstalls()", "public boolean isRestartRequired()", "public void run()", "public boolean isSuccess()", "public Set<PluginInstallCallbackData> getInstalledDependentPlugins()", "public boolean isShownErrors()", "private void updateUrls()", "private boolean prepareToInstall(@NotNull List<PluginNode> pluginsToInstall)", "private boolean prepareToInstallWithCallback(@NotNull PluginNode pluginNode,\n @NotNull List<PluginId> pluginIds)", "@RequiresBackgroundThread\n private boolean prepareToInstall(@NotNull PluginNode pluginNode,\n @NotNull List<PluginId> pluginIds)", "@Nullable IdeaPluginDescriptor checkDependenciesAndReplacements(@NotNull IdeaPluginDescriptor pluginNode)", "boolean checkMissingDependencies(@NotNull IdeaPluginDescriptor pluginNode,\n @Nullable List<PluginId> pluginIds)", "private boolean prepareDependencies(@NotNull IdeaPluginDescriptor pluginNode,\n @NotNull List<PluginNode> dependencies,\n @NotNull @NonNls String titleKey,\n @NotNull @NonNls String messageKey,\n boolean askConfirmation)", "private static @NotNull @Nls String getPluginsText(@NotNull List<PluginNode> nodes)", "private @Nullable PluginNode findPluginInRepo(@NotNull PluginId depPluginId)", "private static @Nullable PluginId getCachedPluginId(@NotNull String pluginId)" ]
intellij-community/platform/platform-impl/src/com/intellij/ide/plugins/PluginInstallOperation.java
312,244
allowElementsFromNamespace
@Override public boolean allowElementsFromNamespace(final String namespace, final XmlTag context) { final TypeDescriptor type = getType(context); if (type instanceof ComplexTypeDescriptor typeDescriptor) { return typeDescriptor.canContainTag("a", namespace, context) || typeDescriptor.getNsDescriptor().hasSubstitutions() || XmlUtil.nsFromTemplateFramework(namespace); } return false; }
[ 27, 53 ]
@Override public boolean allowElementsFromNamespace(final String namespace, final XmlTag context)
439
public class XmlElementDescriptorImpl extends XsdEnumerationDescriptor<XmlTag> implements XmlElementDescriptor, PsiWritableMetaData, Validator<XmlTag>, XmlElementDescriptorAwareAboutChildren
[ "@Override\n public XmlTag getDeclaration()", "@Override\n public String getName(PsiElement context)", "@Override\n public String getName()", "public String getNamespaceByContext(PsiElement context)", "public String getNamespace()", "@Override\n public void init(PsiElement element)", "@Override\n public Object @NotNull [] getDependencies()", "private XmlNSDescriptor getNSDescriptor(XmlElement context)", "@Override\n public XmlNSDescriptor getNSDescriptor()", "@Override\n public XmlElementsGroup getTopGroup()", "public @Nullable TypeDescriptor getType()", "public @Nullable TypeDescriptor getType(XmlElement context)", "@Override\n public XmlElementDescriptor[] getElementsDescriptors(XmlTag context)", "private XmlElementDescriptor[] getElementsDescriptorsImpl(XmlElement context)", "@Override\n public XmlAttributeDescriptor[] getAttributesDescriptors(final XmlTag context)", "private static XmlAttributeDescriptor[] updateAttributeDescriptorsFromAny(final XmlTag context,\n final ComplexTypeDescriptor typeDescriptor,\n XmlAttributeDescriptor[] attributeDescriptors,\n final String ns)", "@Override\n public XmlAttributeDescriptor getAttributeDescriptor(String attributeName, final XmlTag context)", "private @Nullable XmlAttributeDescriptor getAttributeDescriptorImpl(final String attributeName, XmlTag context)", "private String getDefaultNamespace()", "@Override\n public XmlAttributeDescriptor getAttributeDescriptor(XmlAttribute attribute)", "private @Nullable XmlAttributeDescriptor getAttribute(String attributeName, String namespace, XmlTag context, String qName)", "@Override\n public int getContentType()", "public @Nullable XmlElementDescriptor getElementDescriptor(final String name)", "protected @Nullable XmlElementDescriptor getElementDescriptor(final String localName, final String namespace, XmlElement context, String fullName)", "@Override\n public XmlElementDescriptor getElementDescriptor(XmlTag element, XmlTag contextTag)", "protected boolean askParentDescriptorViaXsi()", "@Override\n public String getQualifiedName()", "private @Nullable String getNS()", "@Override\n public String getDefaultName()", "private boolean isQualifiedForm()", "public boolean isAbstract()", "public static Boolean isAbstractDeclaration(final XmlTag descriptorTag)", "@Override\n public void setName(String name)", "public void setValidator(final Validator<XmlTag> validator)", "@Override\n public void validate(@NotNull XmlTag context, @NotNull ValidationHost host)", "@Override\n public PsiReference[] getValueReferences(XmlTag xmlTag, @NotNull String text)", "@Override\n public boolean allowElementsFromNamespace(final String namespace, final XmlTag context)", "@Override\n public String toString()", "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()" ]
intellij-community/xml/xml-psi-impl/src/com/intellij/xml/impl/schema/XmlElementDescriptorImpl.java
10,656
runForAllCarets
@Override public boolean runForAllCarets() { return getHandler().runForAllCarets(); }
[ 27, 42 ]
@Override public boolean runForAllCarets()
93
final class DynamicEditorActionHandler extends EditorActionHandler
[ "@Override\n public boolean runForAllCarets()", "@SuppressWarnings(\"deprecation\")\n @Override\n public boolean isEnabled(Editor editor, DataContext dataContext)", "@Override\n protected boolean isEnabledForCaret(@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext)", "@SuppressWarnings(\"deprecation\")\n @Override\n public void execute(@NotNull Editor editor, @Nullable DataContext dataContext)", "@Override\n protected void doExecute(@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext)", "@Override\n public boolean executeInCommand(@NotNull Editor editor, DataContext dataContext)", "@Override\n public DocCommandGroupId getCommandGroupId(@NotNull Editor editor)", "@Override\n synchronized void setWorksInInjected(boolean worksInInjected)", "@Override\n <T> @Nullable T getHandlerOfType(@NotNull Class<T> type)", "private @Nullable EditorActionHandler getHandler()", "private synchronized @NotNull List<EditorActionHandler> getHandlerChain()", "private static @NotNull List<EditorActionHandlerBean> getRegisteredHandlers(@NotNull EditorAction editorAction)", "void clearCache()", "@Override\n public String toString()" ]
intellij-community/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/DynamicEditorActionHandler.java
231,990
getScope
public GlobalSearchScope getScope() { if (myContext != null) { return myContext.getResolveScope(); } return GlobalSearchScope.allScope(myManager.getProject()); }
[ 25, 33 ]
public GlobalSearchScope getScope()
181
public class InferenceSession
[ "public MethodCandidateInfo getCurrentMethod(PsiExpressionList argumentList)", "public void setCurrentMethod(MethodCandidateInfo currentMethod)", "public @NotNull ParameterTypeInferencePolicy getInferencePolicy()", "public static PsiType createTypeParameterTypeWithUpperBound(@NotNull PsiType upperBound, @NotNull PsiElement place)", "public void initExpressionConstraints(PsiParameter[] parameters,\n PsiExpression[] args,\n PsiMethod method,\n boolean varargs)", "public void initThrowsConstraints(PsiMethod method)", "static PsiExpressionList getArgumentList(PsiElement parent)", "public static boolean isPertinentToApplicability(PsiExpression expr, PsiMethod method)", "private static boolean isPertinentToApplicability(PsiExpression expr, PsiMethod method, PsiType expectedReturnType)", "private static PsiTypeParameterListOwner getTypeParameterOwner(@NotNull PsiMethod method, PsiElement gParent)", "private static boolean isTypeParameterType(PsiTypeParameterListOwner method, PsiType paramType)", "private static PsiType getParameterType(PsiParameter[] parameters, int i, @Nullable PsiSubstitutor substitutor, boolean varargs)", "public @NotNull PsiSubstitutor infer()", "PsiSubstitutor collectAdditionalAndInfer(PsiParameter @NotNull [] parameters,\n PsiExpression @NotNull [] args,\n @NotNull MethodCandidateInfo properties,\n @NotNull PsiSubstitutor psiSubstitutor)", "public @NotNull PsiSubstitutor infer(PsiParameter @Nullable [] parameters,\n PsiExpression @Nullable [] args,\n @Nullable PsiElement parent,\n @Nullable MethodCandidateInfo currentMethod)", "@NotNull\n PsiSubstitutor performGuardedInference(PsiParameter @Nullable [] parameters,\n PsiExpression @Nullable [] args,\n @Nullable PsiElement parent,\n @Nullable MethodCandidateInfo currentMethod,\n @NotNull PsiSubstitutor initialSubstitutor,\n boolean prohibitCaching)", "private void doInfer(PsiParameter @Nullable [] parameters,\n PsiExpression @Nullable [] args,\n @Nullable PsiElement parent,\n @Nullable MethodCandidateInfo properties,\n @NotNull PsiSubstitutor initialSubstitutor)", "private static boolean isPertinentToApplicabilityCheckOnContainingCall(@NotNull PsiElement parent)", "private void collectAdditionalConstraints(PsiParameter[] parameters,\n PsiExpression[] args,\n PsiMethod parentMethod,\n PsiSubstitutor siteSubstitutor,\n Set<ConstraintFormula> additionalConstraints,\n Set<ConstraintFormula> ignoredConstraints,\n boolean varargs,\n PsiSubstitutor initialSubstitutor)", "private boolean dependsOnIgnoredConstraint(Set<ConstraintFormula> ignoredConstraints, ExpressionCompatibilityConstraint compatibilityConstraint)", "public static boolean ignoreLambdaConstraintTree(PsiExpression arg)", "private void collectLambdaReturnExpression(Set<ConstraintFormula> additionalConstraints,\n Set<ConstraintFormula> ignoredConstraints, \n PsiLambdaExpression lambdaExpression,\n PsiType parameterType,\n boolean addConstraint,\n PsiSubstitutor initialSubstitutor)", "private void processReturnExpression(Set<ConstraintFormula> additionalConstraints,\n Set<ConstraintFormula> ignoredConstraints,\n PsiExpression returnExpression,\n @NotNull PsiType functionalType,\n boolean addConstraint,\n PsiSubstitutor initialSubstitutor)", "private void collectAdditionalConstraints(final Set<ConstraintFormula> additionalConstraints,\n final Set<ConstraintFormula> ignoredConstraints, \n final PsiCall callExpression,\n PsiSubstitutor initialSubstitutor)", "public static PsiSubstitutor chooseSiteSubstitutor(MethodCandidateInfo currentMethod,\n JavaResolveResult resolveResult, PsiMethod method)", "public static boolean chooseVarargsMode(MethodCandidateInfo currentMethod,\n JavaResolveResult resolveResult)", "PsiSubstitutor getInstantiations(Collection<InferenceVariable> variables)", "protected PsiSubstitutor prepareSubstitution()", "InitialInferenceState createInitialState(InferenceSessionContainer container,\n Collection<InitialInferenceState.VariableInfo> variables,\n PsiSubstitutor topInferenceSubstitutor)", "private void initBounds(PsiTypeParameter... typeParameters)", "public InferenceVariable[] initBounds(PsiElement context, PsiTypeParameter... typeParameters)", "public InferenceVariable[] initOrReuseVariables(PsiElement context,\n PsiTypeParameter @NotNull ... typeParameters)", "public InferenceVariable[] initBounds(PsiElement context,\n final PsiSubstitutor siteSubstitutor,\n PsiTypeParameter @NotNull ... typeParameters)", "public void registerReturnTypeConstraints(PsiType returnType, @NotNull PsiType targetType, PsiElement context)", "private InferenceVariable[] initFreshVariablesForCapturedBounds(PsiTypeParameter[] typeParameters, PsiType[] parameters)", "private InferenceVariable shouldResolveAndInstantiate(PsiType returnType, PsiType targetType)", "private static boolean hasPrimitiveWrapperBound(InferenceVariable inferenceVariable)", "private static boolean hasUncheckedBounds(InferenceVariable inferenceVariable,\n PsiClassType targetType,\n InferenceSession session)", "private static boolean hasWildcardParameterization(InferenceVariable inferenceVariable, PsiClassType targetType)", "public static PsiType getTargetType(final PsiElement context)", "public static PsiType getTargetTypeByParent(PsiElement context)", "private static PsiType getTargetTypeFromParent(final PsiElement context, Ref<String> errorMessage, boolean inferParent)", "private static PsiType getTargetTypeFromParentLambda(PsiLambdaExpression lambdaExpression, Ref<String> errorMessage, boolean inferParent)", "public InferenceVariable getInferenceVariable(PsiType psiType)", "public boolean isProperType(@Nullable PsiType type)", "public boolean collectDependencies(@Nullable PsiType type,\n final @Nullable Set<? super InferenceVariable> dependencies)", "public static boolean collectDependencies(@Nullable PsiType type,\n final @Nullable Set<? super InferenceVariable> dependencies,\n final Function<? super PsiClassType, ? extends InferenceVariable> fun)", "public boolean repeatInferencePhases()", "private boolean reduceConstraints()", "private boolean isThrowable(List<PsiType> upperBounds)", "private PsiType substituteNonProperBound(PsiType bound, PsiSubstitutor substitutor)", "private boolean hasBoundProblems(final List<InferenceVariable> typeParams,\n final PsiSubstitutor substitutor)", "protected void resolveBounds(final Collection<InferenceVariable> inferenceVariables,\n @NotNull PsiSubstitutor substitutor)", "private boolean initFreshVariables(PsiSubstitutor substitutor, List<InferenceVariable> vars, UniqueNameGenerator nameGenerator)", "private PsiSubstitutor resolveSubsetOrdered(Set<InferenceVariable> varsToResolve, PsiSubstitutor siteSubstitutor)", "protected final @NotNull PsiSubstitutor resolveSubset(Collection<InferenceVariable> vars, PsiSubstitutor substitutor)", "private PsiType checkBoundsConsistency(PsiSubstitutor substitutor, InferenceVariable var)", "private boolean isLowerBoundNotAssignable(InferenceVariable var, PsiType eqBound, boolean allowUncheckedConversion)", "private static @Nls String getConjunctsConflict(PsiIntersectionType type)", "public String getPresentableText(PsiType psiType)", "public void registerIncompatibleErrorMessage(Collection<InferenceVariable> variables, @Nls String incompatibleTypesMessage)", "public void registerIncompatibleErrorMessage(@NotNull @Nls String incompatibleBoundsMessage)", "private @Nls String incompatibleBoundsMessage(final InferenceVariable var,\n final PsiSubstitutor substitutor,\n final InferenceBound lowBound,\n final String lowBoundName,\n final InferenceBound upperBound,\n final String upperBoundName)", "private PsiType getLowerBound(InferenceVariable var, PsiSubstitutor substitutor)", "private PsiType getUpperBound(InferenceVariable var, PsiSubstitutor substitutor)", "private PsiType getEqualsBound(InferenceVariable var, PsiSubstitutor substitutor)", "private PsiType composeBound(InferenceVariable variable,\n InferenceBound boundType,\n Function<? super Pair<PsiType, PsiType>, ? extends PsiType> fun,\n PsiSubstitutor substitutor)", "private PsiType composeBound(InferenceVariable variable,\n InferenceBound boundType,\n Function<? super Pair<PsiType, PsiType>, ? extends PsiType> fun,\n PsiSubstitutor substitutor,\n boolean includeNonProperBounds)", "public PsiManager getManager()", "public GlobalSearchScope getScope()", "public Collection<InferenceVariable> getInferenceVariables()", "public void addConstraint(ConstraintFormula constraint)", "private boolean proceedWithAdditionalConstraints(Set<ConstraintFormula> additionalConstraints, Set<ConstraintFormula> ignoredConstraints)", "private void collectVarsToResolve(Set<? super InferenceVariable> varsToResolve, InputOutputConstraintFormula formula)", "private boolean processOneConstraint(ConstraintFormula formula,\n Set<ConstraintFormula> additionalConstraints,\n PsiSubstitutor substitutor, \n Set<ConstraintFormula> ignoredConstraints)", "private Set<ConstraintFormula> buildSubset(final Set<ConstraintFormula> additionalConstraints,\n final Set<ConstraintFormula> ignoredConstraints)", "private boolean dependsOnOutput(Set<InferenceVariable> outputVariables, Set<InferenceVariable> dependencies)", "private @NotNull Set<InferenceVariable> getOutputVariables(Set<ConstraintFormula> constraintFormulas)", "public PsiSubstitutor collectApplicabilityConstraints(final PsiMethodReferenceExpression reference, \n final MethodCandidateInfo candidateInfo,\n final PsiType functionalInterfaceType)", "public void setErased()", "private InferenceVariable getInferenceVariable(PsiTypeParameter parameter)", "public static boolean isMoreSpecific(final PsiMethod m1,\n final PsiMethod m2,\n final PsiSubstitutor siteSubstitutor1,\n final PsiExpression[] args,\n final PsiElement context,\n final boolean varargs)", "private static boolean isMoreSpecificInternal(PsiMethod m1,\n PsiMethod m2,\n PsiSubstitutor siteSubstitutor1,\n PsiExpression[] args,\n PsiElement context,\n boolean varargs)", "public static boolean isFunctionalTypeMoreSpecificOnExpression(PsiType sType,\n PsiType tType,\n PsiExpression arg)", "private static boolean isFunctionalTypeMoreSpecific(PsiType sType,\n PsiType tType,\n @Nullable InferenceSession session, \n PsiExpression... args)", "private static boolean argConstraints(PsiExpression arg,\n @Nullable InferenceSession session,\n PsiMethod sInterfaceMethod,\n PsiSubstitutor sSubstitutor,\n PsiMethod tInterfaceMethod,\n PsiSubstitutor tSubstitutor)", "private static boolean relates(PsiType sType, PsiType tType)", "void collectCaptureDependencies(InferenceVariable inferenceVariable, Set<? super InferenceVariable> dependencies)", "boolean hasCapture(InferenceVariable inferenceVariable)", "public PsiElement getContext()", "public final void propagateVariables(@NotNull InferenceSession from)", "public PsiType substituteWithInferenceVariables(@Nullable PsiType type)", "public PsiSubstitutor getInferenceSubstitution()", "public PsiSubstitutor getRestoreNameSubstitution()", "public InferenceSessionContainer getInferenceSessionContainer()", "public PsiType startWithFreshVars(PsiType type)", "public static PsiClass findParameterizationOfTheSameGenericClass(List<? extends PsiType> upperBounds,\n Processor<? super Pair<PsiType, PsiType>> processor)", "public List<@Nls String> getIncompatibleErrorMessages()", "public boolean isErased()" ]
intellij-community/java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceSession.java
447,946
buildVisitor
@NotNull @Override public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitNewExpression(@NotNull PsiNewExpression expression) { if (PsiDiamondTypeUtil.canCollapseToDiamond(expression, expression, null)) { final PsiJavaCodeReferenceElement classReference = expression.getClassOrAnonymousClassReference(); LOG.assertTrue(classReference != null); final PsiReferenceParameterList parameterList = classReference.getParameterList(); LOG.assertTrue(parameterList != null); for (PsiTypeElement typeElement : parameterList.getTypeParameterElements()) { if (typeElement.getAnnotations().length > 0) { return; } } final PsiElement firstChild = parameterList.getFirstChild(); final PsiElement lastChild = parameterList.getLastChild(); final TextRange range = new TextRange(firstChild != null && firstChild.getNode().getElementType() == JavaTokenType.LT ? 1 : 0, parameterList.getTextLength() - (lastChild != null && lastChild.getNode().getElementType() == JavaTokenType.GT ? 1 : 0)); holder.registerProblem(parameterList, range, JavaAnalysisBundle.message("explicit.type.argument.ref.loc.can.be.replaced.with"), new ReplaceWithDiamondFix()); } } }; }
[ 48, 60 ]
@NotNull @Override public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly)
1,476
public final class ExplicitTypeCanBeDiamondInspection extends AbstractBaseJavaLocalInspectionTool
[ "@Nls\n @NotNull\n @Override\n public String getGroupDisplayName()", "@Override\n public boolean isEnabledByDefault()", "@NotNull\n @Override\n public String getShortName()", "@Override\n public @NotNull Set<@NotNull JavaFeature> requiredFeatures()", "@NotNull\n @Override\n public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly)", "@NotNull\n @Override\n public String getFamilyName()", "@Override\n protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)" ]
intellij-community/java/java-analysis-impl/src/com/intellij/codeInspection/ExplicitTypeCanBeDiamondInspection.java
465,341
findPossibleSourcesForClass
@NotNull private static Collection<File> findPossibleSourcesForClass(JavaSourceRootDescriptor rd, final @Nullable String boundClassName) throws IOException { if (boundClassName == null) { return Collections.emptyList(); } String relPath = suggestRelativePath(rd, boundClassName); final File containingDirectory = new File(rd.getRootFile(), relPath).getParentFile(); if (containingDirectory == null) { return Collections.emptyList(); } final File[] files = containingDirectory.listFiles(FileFilters.withExtension("java")); if (files == null || files.length == 0) { return Collections.emptyList(); } return Arrays.asList(files); }
[ 43, 70 ]
@NotNull private static Collection<File> findPossibleSourcesForClass(JavaSourceRootDescriptor rd, final @Nullable String boundClassName)
690
public final class FormsBindingManager extends FormsBuilder
[ "@Override\n public void buildStarted(CompileContext context)", "@Override\n public void chunkBuildFinished(CompileContext context, ModuleChunk chunk)", "@Override\n public void buildFinished(CompileContext context)", "@NotNull\n private static File getMarkerFile(CompileContext context)", "@NotNull\n @Override\n public List<String> getCompilableFileExtensions()", "@Override\n public ExitCode build(CompileContext context, ModuleChunk chunk, DirtyFilesHolder<JavaSourceRootDescriptor, ModuleBuildTarget> dirtyFilesHolder, OutputConsumer outputConsumer)", "private static boolean containsValidForm(Set<File> files)", "@NotNull\n private static Collection<File> findBoundSourceCandidates(CompileContext context, final ModuleBuildTarget target, File form)", "@Nullable\n private static File findSourceForClass(JavaSourceRootDescriptor rd, final @Nullable String boundClassName)", "@NotNull\n private static Collection<File> findPossibleSourcesForClass(JavaSourceRootDescriptor rd, final @Nullable String boundClassName)", "@NotNull\n private static String suggestRelativePath(@NotNull JavaSourceRootDescriptor rd, @NotNull String className)" ]
intellij-community/plugins/ui-designer/jps-plugin/src/org/jetbrains/jps/uiDesigner/compiler/FormsBindingManager.java
159,358
accept
public void accept(@NotNull ShVisitor visitor) { visitor.visitProcessSubstitution(this); }
[ 12, 18 ]
public void accept(@NotNull ShVisitor visitor)
96
public class ShProcessSubstitutionImpl extends ShCompositeElementImpl implements ShProcessSubstitution
[ "public void accept(@NotNull ShVisitor visitor)", "@Override\n public void accept(@NotNull PsiElementVisitor visitor)", "@Override\n @Nullable\n public ShCompoundList getCompoundList()", "@Override\n @Nullable\n public PsiElement getInputProcessSubstitution()", "@Override\n @Nullable\n public PsiElement getOutputProcessSubstitution()", "@Override\n @Nullable\n public PsiElement getRightParen()" ]
intellij-community/plugins/sh/core/gen/com/intellij/sh/psi/impl/ShProcessSubstitutionImpl.java
46,882
createActions
@Override protected Action @NotNull [] createActions() { List<Action> actions = new ArrayList<>(); actions.add(getCancelAction()); AbstractAction updateButton = null; if (myLoadedResult.getPatches() != null || myTestPatch != null) { boolean canRestart = ApplicationManager.getApplication().isRestartCapable(); String name = canRestart ? IdeBundle.message("updates.download.and.restart.button") : IdeBundle.message("updates.apply.manually.button"); updateButton = new AbstractAction(name) { @Override public void actionPerformed(ActionEvent e) { close(OK_EXIT_CODE); downloadPatchAndRestart(); } }; updateButton.setEnabled(!myWriteProtected); } else { String downloadUrl = myLoadedResult.getNewBuild().getDownloadUrl(); if (downloadUrl != null) { updateButton = new AbstractAction(IdeBundle.message("updates.download.button")) { @Override public void actionPerformed(ActionEvent e) { close(OK_EXIT_CODE); BrowserUtil.browse(IdeUrlTrackingParametersProvider.getInstance().augmentUrl(downloadUrl)); } }; } } if (updateButton != null) { updateButton.putValue(DEFAULT_ACTION, Boolean.TRUE); actions.add(updateButton); } return actions.toArray(new Action[0]); }
[ 41, 54 ]
@Override protected Action @NotNull [] createActions()
1,384
public final class UpdateInfoDialog extends AbstractUpdateDialog
[ "private static @Nullable Pair<@NlsContexts.Label String, Boolean> getLicensingInfo(@NotNull PlatformUpdates.Loaded result)", "@Override\n protected @NotNull JComponent createCenterPanel()", "@Override\n protected @NotNull DialogStyle getStyle()", "@Override\n protected @NotNull JComponent createSouthPanel()", "@Override\n protected Action @NotNull [] createLeftSideActions()", "@Override\n protected Action @NotNull [] createActions()", "@Override\n protected @NotNull String getCancelButtonText()", "private void downloadPatchAndRestart()", "private static void restartLaterAndRunCommand(String[] command)", "private static void showPatchInstructions(String[] command)" ]
intellij-community/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateInfoDialog.java
296,671
restart
@Override public void restart(boolean exitConfirmed) { restart(exitConfirmed, false); }
[ 24, 31 ]
@Override public void restart(boolean exitConfirmed)
95
@ApiStatus.Internal public final class ApplicationImpl extends ClientAwareComponentManager implements ApplicationEx, ReadActionListener, WriteActionListener
[ "private static @NotNull Logger getLogger()", "@Override\n public OTelReadWriteActionsMonitor invoke()", "private static void registerFakeServices(ApplicationImpl app)", "@TestOnly\n ThreadingSupport getRwLock()", "@Override\n public void executeByImpatientReader(@NotNull Runnable runnable)", "@Override\n public boolean isInImpatientReader()", "@TestOnly\n public void disposeContainer()", "@Override\n public boolean holdsReadLock()", "@Override\n public boolean isInternal()", "@Override\n public boolean isEAP()", "@Override\n public boolean isUnitTestMode()", "@Override\n public boolean isHeadlessEnvironment()", "@Override\n public boolean isCommandLine()", "@Override\n public boolean isLightEditMode()", "@Override\n public @NotNull Future<?> executeOnPooledThread(@NotNull Runnable action)", "@Override\n public @NotNull <T> Future<T> executeOnPooledThread(@NotNull Callable<T> action)", "@Override\n public boolean isDispatchThread()", "@Override\n public boolean isWriteIntentLockAcquired()", "@Deprecated\n @Override\n public @NotNull ModalityInvokator getInvokator()", "@Override\n public void invokeLater(@NotNull Runnable runnable)", "@Override\n public void invokeLater(@NotNull Runnable runnable, @NotNull Condition<?> expired)", "@Override\n public void invokeLater(@NotNull Runnable runnable, @NotNull ModalityState state)", "@Override\n public void invokeLater(@NotNull Runnable runnable, @NotNull ModalityState state, @NotNull Condition<?> expired)", "@ApiStatus.Internal\n @Override\n public void dispatchCoroutineOnEDT(Runnable runnable, ModalityState state)", "@Override\n public void dispose()", "@Override\n @SuppressWarnings(\"UsagesOfObsoleteApi\")\n public boolean runProcessWithProgressSynchronously(\n @NotNull Runnable process,\n @NotNull String progressTitle,\n boolean canBeCanceled,\n boolean shouldShowModalWindow,\n @Nullable Project project,\n @Nullable JComponent parentComponent,\n @Nullable @Nls(capitalization = Nls.Capitalization.Title) String cancelText\n )", "@Override\n public void invokeAndWait(@NotNull Runnable runnable, @NotNull ModalityState modalityState)", "private @NotNull Runnable wrapWithRunIntendedWriteAction(@NotNull Runnable runnable)", "@Override\n public void invokeAndWait(@NotNull Runnable runnable)", "@Override\n public @NotNull ModalityState getCurrentModalityState()", "@Override\n public @NotNull ModalityState getModalityStateForComponent(@NotNull Component c)", "@Override\n public @NotNull ModalityState getAnyModalityState()", "@Override\n public @NotNull ModalityState getDefaultModalityState()", "@Override\n public @NotNull ModalityState getNoneModalityState()", "@Override\n public long getStartTime()", "@Override\n public long getIdleTime()", "@Override\n public void restart(boolean exitConfirmed)", "@Override\n public void restart(boolean exitConfirmed, boolean elevate)", "@Override\n public void exit(boolean force, boolean exitConfirmed, boolean restart, int exitCode)", "@Override\n public void exit(boolean force, boolean exitConfirmed, boolean restart)", "public void restart(int flags, String @NotNull [] beforeRestart)", "@Override\n public void exit(int flags, int exitCode)", "@Override\n public void exit(int flags)", "private void exit(int flags, boolean restart, String @NotNull [] beforeRestart, int exitCode)", "@Override\n public boolean isExitInProgress()", "private void doExit(int flags, boolean restart, String @NotNull [] beforeRestart, int exitCode)", "private @Nullable Integer destructApplication(int flags, boolean restart, String @NotNull [] beforeRestart, int exitCode)", "private static void logErrorDuringExit(String message, Throwable err)", "private boolean isInstantShutdownPossible()", "private @NotNull CompletableFuture<@NotNull ProgressWindow> createProgressWindowAsyncIfNeeded(\n @NotNull @NlsContexts.ProgressTitle String progressTitle,\n boolean canBeCanceled,\n boolean shouldShowModalWindow,\n @Nullable Project project,\n @Nullable JComponent parentComponent,\n @Nullable @NlsContexts.Button String cancelText\n )", "private ProgressWindow createProgressWindow(\n @NlsContexts.ProgressTitle String progressTitle,\n boolean canBeCanceled,\n boolean shouldShowModalWindow,\n @Nullable Project project,\n @Nullable JComponent parentComponent,\n @Nullable @NlsContexts.Button String cancelText\n )", "private static void shutdown()", "private static boolean confirmExitIfNeeded(boolean exitConfirmed)", "private boolean canExit()", "@ApiStatus.Internal\n public boolean isCurrentWriteOnEdt()", "@Override\n public void runIntendedWriteActionOnCurrentThread(@NotNull Runnable action)", "@Override\n @SuppressWarnings(\"RedundantThrows\")\n public <T, E extends Throwable> T runUnlockingIntendedWrite(@NotNull ThrowableComputable<T, E> action)", "@Override\n public void runReadAction(@NotNull Runnable action)", "@Override\n public <T> T runReadAction(@NotNull Computable<T> computation)", "@Override\n public <T, E extends Throwable> T runReadAction(@NotNull ThrowableComputable<T, E> computation)", "@Override\n public boolean acquireWriteIntentLock(@Nullable String ignored)", "@Override\n public void releaseWriteIntentLock()", "@Override\n @ApiStatus.Experimental\n public boolean runWriteActionWithNonCancellableProgressInDispatchThread(@NotNull @NlsContexts.ProgressTitle String title,\n @Nullable Project project,\n @Nullable JComponent parentComponent,\n @NotNull Consumer<? super ProgressIndicator> action)", "@Override\n @ApiStatus.Experimental\n public boolean runWriteActionWithCancellableProgressInDispatchThread(@NotNull @NlsContexts.ProgressTitle String title,\n @Nullable Project project,\n @Nullable JComponent parentComponent,\n @NotNull java.util.function.Consumer<? super ProgressIndicator> action)", "@Override\n public void runWriteAction(@NotNull Runnable action)", "@Override\n public <T> T runWriteAction(@NotNull Computable<T> computation)", "@Override\n public <T, E extends Throwable> T runWriteAction(@NotNull ThrowableComputable<T, E> computation)", "@Override\n public boolean hasWriteAction(@NotNull Class<?> actionClass)", "@Override\n public <T, E extends Throwable> T runWriteIntentReadAction(@NotNull ThrowableComputable<T, E> computation)", "@Override\n public void assertReadAccessAllowed()", "@Override\n public void assertReadAccessNotAllowed()", "@Override\n public boolean isReadAccessAllowed()", "@Override\n public void assertIsDispatchThread()", "@Override\n public void assertIsNonDispatchThread()", "@Override\n public void assertWriteIntentLockAcquired()", "@Override\n public void assertIsDispatchThread(@Nullable JComponent component)", "@Override\n public boolean tryRunReadAction(@NotNull Runnable action)", "@Override\n public boolean isActive()", "@Override\n @SuppressWarnings(\"deprecation\")\n public @NotNull AccessToken acquireReadActionLock()", "@Override\n public boolean isWriteActionPending()", "@Override\n public boolean isWriteAccessAllowed()", "@Override\n @SuppressWarnings(\"deprecation\")\n public @NotNull AccessToken acquireWriteActionLock(@NotNull Class<?> clazz)", "@Override\n @SuppressWarnings(\"UsagesOfObsoleteApi\")\n public void assertWriteAccessAllowed()", "public void executeSuspendingWriteAction(@Nullable Project project,\n @NotNull @NlsContexts.DialogTitle String title,\n @NotNull Runnable runnable)", "@Override\n public boolean isWriteActionInProgress()", "@Override\n public void addApplicationListener(@NotNull ApplicationListener l)", "@Override\n public void addApplicationListener(@NotNull ApplicationListener l, @NotNull Disposable parent)", "@Override\n public void removeApplicationListener(@NotNull ApplicationListener l)", "private void fireBeforeWriteActionStart(@NotNull Class<?> action)", "private void fireWriteActionStarted(@NotNull Class<?> action)", "private void fireWriteActionFinished(@NotNull Class<?> action)", "private void fireAfterWriteActionFinished(@NotNull Class<?> action)", "@Override\n public void saveSettings()", "@Override\n public void saveAll()", "@Override\n public void setSaveAllowed(boolean value)", "@Override\n public boolean isSaveAllowed()", "@Override\n public boolean isRestartCapable()", "@Override\n public String toString()", "@Override\n public @NotNull String activityNamePrefix()", "@Override\n protected @NotNull ContainerDescriptor getContainerDescriptor(@NotNull IdeaPluginDescriptorImpl pluginDescriptor)", "@Override\n protected void logMessageBusDelivery(@NotNull Topic<?> topic, @NotNull String messageName, @NotNull Object handler, long duration)", "@TestOnly\n void disableEventsUntil(@NotNull Disposable disposable)", "@Override\n public boolean isComponentCreated()", "@Override\n public void runWithoutImplicitRead(@NotNull Runnable runnable)", "@Override\n public void runWithImplicitRead(@NotNull Runnable runnable)", "@ApiStatus.Internal\n public static void postInit(@NotNull ApplicationImpl app)", "@Override\n @SuppressWarnings(\"deprecation\")\n public void flushNativeEventQueue()", "@Override\n public void readActionFinished(@NotNull Class<?> action)", "@Override\n public void beforeWriteActionStart(@NotNull Class<?> action)", "@Override\n public void writeActionStarted(@NotNull Class<?> action)", "@Override\n public void writeActionFinished(@NotNull Class<?> action)", "@Override\n public void afterWriteActionFinished(@NotNull Class<?> action)", "@NotNull\n private static ThreadingSupport getThreadingSupport()" ]
intellij-community/platform/platform-impl/src/com/intellij/openapi/application/impl/ApplicationImpl.java
295,997
isPropertyValue
public static boolean isPropertyValue(@NotNull PsiElement element) { final PsiElement parent = element.getParent(); return parent instanceof JsonProperty && element == ((JsonProperty)parent).getValue(); }
[ 22, 37 ]
public static boolean isPropertyValue(@NotNull PsiElement element)
214
@SuppressWarnings("UnusedDeclaration") public final class JsonPsiUtil
[ "public static boolean isArrayElement(@NotNull PsiElement element)", "public static boolean isPropertyKey(@NotNull PsiElement element)", "public static boolean isPropertyValue(@NotNull PsiElement element)", "public static @NotNull PsiElement findFurthestSiblingOfSameType(@NotNull PsiElement anchor, boolean after)", "public static boolean hasElementType(@NotNull ASTNode node, @NotNull TokenSet set)", "public static boolean hasElementType(@NotNull ASTNode node, IElementType... types)", "public static boolean hasElementType(@NotNull PsiElement element, @NotNull TokenSet set)", "public static boolean hasElementType(@NotNull PsiElement element, IElementType... types)", "public static @NotNull String getElementTextWithoutHostEscaping(@NotNull PsiElement element)", "public static @NotNull String stripQuotes(@NotNull String text)", "public static boolean isEscapedChar(@NotNull String text, int position)", "public static @NotNull PsiElement addProperty(@NotNull JsonObject object, @NotNull JsonProperty property, boolean first)", "public static @NotNull Set<String> getOtherSiblingPropertyNames(@Nullable JsonProperty property)" ]
intellij-community/json/src/com/intellij/json/psi/JsonPsiUtil.java
1,065
getProperties
public ExternalizablePropertyContainer getProperties() { return myProperties; }
[ 39, 52 ]
public ExternalizablePropertyContainer getProperties()
85
public abstract class AntConfigurationBase extends AntConfiguration
[ "public static AntConfigurationBase getInstance(@NotNull Project project)", "public abstract boolean isFilterTargets()", "public abstract void setFilterTargets(final boolean value)", "public abstract List<ExecutionEvent> getEventsForTarget(final AntBuildTarget target)", "@Nullable\n public abstract AntBuildTarget getTargetForEvent(final ExecutionEvent event)", "public abstract void setTargetForEvent(final AntBuildFile buildFile, final String targetName, final ExecutionEvent event)", "public abstract void clearTargetForEvent(final ExecutionEvent event)", "public abstract boolean isAutoScrollToSource()", "public abstract void setAutoScrollToSource(final boolean value)", "public abstract AntInstallation getProjectDefaultAnt()", "public ExternalizablePropertyContainer getProperties()", "@ApiStatus.Internal\n public abstract void ensureInitialized()", "public abstract void setContextFile(@NotNull XmlFile file, @Nullable XmlFile context)", "@Nullable\n public abstract XmlFile getContextFile(@Nullable XmlFile file)", "@Nullable\n public abstract XmlFile getEffectiveContextFile(@Nullable XmlFile file)", "@Nullable\n public abstract AntBuildFileBase getAntBuildFile(@NotNull PsiFile file)", "@Override\n public abstract AntBuildFile[] getBuildFiles()" ]
intellij-community/plugins/ant/src/com/intellij/lang/ant/config/AntConfigurationBase.java
33,409
getModuleType
@Override public ModuleType<?> getModuleType() { return ModuleType.get(myRootModel.getModule()); }
[ 35, 48 ]
@Override public ModuleType<?> getModuleType()
112
public class ModuleStructureConfigurable extends BaseStructureConfigurable implements Place.Navigator, Configurable.WithEpDependencies
[ "@Override\n protected String getComponentStateKey()", "@Override\n protected void initTree()", "@NotNull\n @Override\n protected String getTextForSpeedSearch(MyNode node)", "@Override\n protected ArrayList<AnAction> getAdditionalActions()", "@Override\n public void addNode(MyNode nodeToAdd, MyNode parent)", "@Override\n @NotNull\n protected ArrayList<AnAction> createActions(final boolean fromPopup)", "@Override\n @NotNull\n protected List<? extends AnAction> createCopyActions(boolean fromPopup)", "@Override\n protected void loadTree()", "@NotNull\n @Override\n protected Collection<? extends ProjectStructureElement> getProjectStructureElements()", "@Override\n protected void updateSelection(@Nullable NamedConfigurable configurable)", "@Override\n protected boolean isAutoScrollEnabled()", "@Override\n protected boolean updateMultiSelection(final List<? extends NamedConfigurable> selectedConfigurables)", "@Override\n public @NotNull Collection<BaseExtensionPointName<?>> getDependencies()", "private void updateModuleEditorSelection(final NamedConfigurable configurable)", "private void createProjectNodes()", "private static boolean containsSecondLevelNodes(TreeNode rootNode)", "@NotNull\n private ModuleNode createModuleNode(Module module, ModuleGrouper moduleGrouper)", "@NotNull\n private static MyNode createModuleGroupNode(ModuleGroup moduleGroup)", "private void addRootNodesFromExtensions(final MyNode root, final Project project)", "private void addNodesFromExtensions(final Module module, final MyNode moduleNode)", "public boolean updateProjectTree(final Module[] modules)", "private DefaultTreeModel getTreeModel()", "@NotNull\n private ModuleGroupingTreeHelper<Module, MyNode> createGroupingHelper(Predicate<? super MyNode> nodeToBeMovedFilter)", "@Override\n protected Comparator<MyNode> getNodeComparator()", "@Override\n public void init(final StructureConfigurableContext context)", "@Override\n public void reset()", "@Override\n public void apply()", "@Override\n public boolean isModified()", "@Override\n public void disposeUIResources()", "@Override\n public void dispose()", "@NotNull\n @Override\n public JComponent createComponent()", "@Override\n public String getDisplayName()", "@Override\n @Nullable\n @NonNls\n public String getHelpTopic()", "public ActionCallback selectOrderEntry(@NotNull Module module, @Nullable OrderEntry orderEntry)", "private ModuleGrouper getModuleGrouper()", "@Deprecated(forRemoval = true)\n public static ModuleStructureConfigurable getInstance(final Project project)", "public Project getProject()", "public Module[] getModules()", "public void removeLibraryOrderEntry(final Module module, final Library library)", "public void addLibraryOrderEntry(final Module module, final Library library)", "@Nullable\n public MyNode findModuleNode(final Module module)", "public FacetEditorFacadeImpl getFacetEditorFacade()", "public ProjectFacetsConfigurator getFacetConfigurator()", "private void addModule(boolean anImport, boolean detectModuleBase)", "private void addModuleNode(@NotNull Module module)", "@Nullable\n public Module getSelectedModule()", "@Override\n @NotNull\n @NonNls\n public String getId()", "@Nullable\n public Module getModule(final String moduleName)", "public StructureConfigurableContext getContext()", "private static boolean canBeCopiedByExtension(final NamedConfigurable<?> configurable)", "private void copyByExtension(final NamedConfigurable<?> configurable)", "@Override\n public ModuleGroup getModuleGroup()", "@NotNull\n @Override\n public String getDisplayName()", "@NotNull\n private String getFullModuleName()", "private ModuleGrouper getModuleGrouper()", "@Override\n public ModuleConfigurable getConfigurable()", "private Module getModule()", "@Override\n protected void reloadNode(DefaultTreeModel treeModel)", "@Nullable\n ModuleGroup getModuleGroup()", "@NotNull\n @Override\n public String getDisplayName()", "@Override\n @NotNull\n public ModuleGroup getModuleGroup()", "@Override\n public boolean remove(@NotNull Collection<? extends Facet> facets)", "@Override\n public boolean remove(@NotNull Collection<? extends Module> modules)", "@Override\n public void uiDataSnapshot(@NotNull DataSink sink)", "private Module @Nullable [] getModuleContexts()", "@Override\n public void update(@NotNull\n final AnActionEvent e)", "@Override\n public @NotNull ActionUpdateThread getActionUpdateThread()", "@Override\n public boolean isSelected(@NotNull AnActionEvent e)", "@Override\n public void setSelected(@NotNull AnActionEvent e, boolean state)", "private void regroupModules()", "@Override\n protected AbstractAddGroup createAddAction(boolean fromPopup)", "@Override\n protected List<RemoveConfigurableHandler<?>> getRemoveHandlers()", "@Override\n @Nullable\n protected String getEmptySelectionString()", "@Override\n public void actionPerformed(@NotNull final AnActionEvent e)", "@Override\n public void update(@NotNull final AnActionEvent e)", "@Override\n public @NotNull ActionUpdateThread getActionUpdateThread()", "@Override\n public void setupRootModel(@NotNull ModifiableRootModel modifiableRootModel)", "@Override\n public ModuleType<?> getModuleType()", "@Override\n public void actionPerformed(@NotNull final AnActionEvent e)", "@Override\n public int compare(final T o1, final T o2)" ]
intellij-community/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/projectRoot/ModuleStructureConfigurable.java
415,502
customizeCellRenderer
@Override protected void customizeCellRenderer(@NotNull JList<? extends RegExpInspectionConfiguration.InspectionPattern> list, RegExpInspectionConfiguration.InspectionPattern value, int index, boolean selected, boolean hasFocus) { final FileType fileType = value.fileType(); setIcon((fileType == null) ? AllIcons.FileTypes.Any_type : fileType.getIcon()); final String regExp = value.regExp(); final String replacement = value.replacement(); append("/", SimpleTextAttributes.GRAY_ATTRIBUTES); if (replacement != null) { append(shortenTextWithEllipsis(regExp, 49, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES); append("/ ⇨ '", SimpleTextAttributes.GRAY_ATTRIBUTES); append(shortenTextWithEllipsis(replacement, 49, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES); append("'", SimpleTextAttributes.GRAY_ATTRIBUTES); } else { append(shortenTextWithEllipsis(regExp, 100, 0, true), SimpleTextAttributes.REGULAR_ATTRIBUTES); append("/", SimpleTextAttributes.GRAY_ATTRIBUTES); } setEnabled(list.isEnabled()); } }
[ 27, 48 ]
@Override protected void customizeCellRenderer(@NotNull JList<? extends RegExpInspectionConfiguration.InspectionPattern> list, RegExpInspectionConfiguration.InspectionPattern value, int index, boolean selected, boolean hasFocus)
1,247
public class RegExpInspectionConfigurationCellRenderer extends ColoredListCellRenderer<RegExpInspectionConfiguration.InspectionPattern>
[ "@Override\n protected void customizeCellRenderer(@NotNull JList<? extends RegExpInspectionConfiguration.InspectionPattern> list,\n RegExpInspectionConfiguration.InspectionPattern value,\n int index,\n boolean selected,\n boolean hasFocus)" ]
intellij-community/RegExpSupport/src/org/intellij/lang/regexp/inspection/custom/RegExpInspectionConfigurationCellRenderer.java
20,305
clearScriptCache
private static void clearScriptCache() { Application app = ApplicationManager.getApplication(); app.invokeLater(() -> { for (Project project : ProjectManager.getInstance().getOpenProjects()) { project.putUserData(SCRIPTS_CACHE, null); PsiManagerEx.getInstanceEx(project).dropPsiCaches(); } }, app.getDisposed()); }
[ 20, 36 ]
private static void clearScriptCache()
356
public final class GroovyDslFileIndex
[ "@Nullable\n @NlsSafe\n public static String getError(VirtualFile file)", "public static boolean isActivated(@NotNull VirtualFile file)", "public static void activate(final VirtualFile vfile)", "public static Status getStatus(@NotNull VirtualFile file)", "private static void clearScriptCache()", "public static void disableFile(@NotNull VirtualFile vfile, @NotNull Status status, @NlsSafe @Nullable String error)", "private static void setStatusAndError(@NotNull VirtualFile vfile, @NotNull Status status, @NlsSafe @Nullable String error)", "@Nullable\n private static GroovyDslExecutor getCachedExecutor(@NotNull final VirtualFile file, final long stamp)", "@Nullable\n public static PsiClassType processScriptSuperClasses(@NotNull GroovyFile scriptFile)", "public static boolean processExecutors(\n @NotNull PsiClassType psiType,\n @NotNull PsiElement place,\n @NotNull PairProcessor<? super CustomMembersHolder, ? super GroovyClassDescriptor> processor\n )", "private static boolean insideAnnotation(@Nullable PsiElement place)", "private static List<VirtualFile> getGdslFiles(final Project project)", "static List<VirtualFile> getProjectGdslFiles(Project project)", "@NotNull\n private static Set<File> getBundledScriptFolders()", "private static List<GroovyDslScript> getDslScripts(final Project project)", "private static void scheduleParsing(final LinkedBlockingQueue<Pair<VirtualFile, GroovyDslExecutor>> queue,\n final Project project,\n final VirtualFile vfile,\n final long stamp,\n final String text)", "@Nullable\n private static GroovyDslExecutor createExecutor(String text, VirtualFile vfile, final Project project)", "@Override\n public void after(@NotNull List<? extends @NotNull VFileEvent> events)" ]
intellij-community/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java
74,681
getAllModuleEncodings
@NotNull @Override public Collection<Charset> getAllModuleEncodings(@NotNull Module module) { final Set<Charset> encodings = myModuleFileEncodings.getValue().get(module); if (encodings != null) { return encodings; } return ContainerUtil.createMaybeSingletonList(EncodingProjectManager.getInstance(myProject).getDefaultCharset()); }
[ 50, 71 ]
@NotNull @Override public Collection<Charset> getAllModuleEncodings(@NotNull Module module)
359
public final class CompilerEncodingServiceImpl extends CompilerEncodingService
[ "@NotNull\n private Map<Module, Set<Charset>> computeModuleCharsetMap()", "@Override\n @Nullable\n public Charset getPreferredModuleEncoding(@NotNull Module module)", "@NotNull\n @Override\n public Collection<Charset> getAllModuleEncodings(@NotNull Module module)" ]
intellij-community/java/compiler/impl/src/com/intellij/compiler/impl/CompilerEncodingServiceImpl.java
457,047
createFileFilter
@Override public @NotNull FileFilter createFileFilter() { FileFilter baseFilter = super.createFileFilter(); final JpsJavaCompilerConfiguration configuration = JpsJavaExtensionService.getInstance().getCompilerConfiguration(getTarget().getModule().getProject()); final JavadocSnippetsSkipFilter snippetsSkipFilter = new JavadocSnippetsSkipFilter(getRootFile()); return file -> baseFilter.accept(file) && configuration.isResourceFile(file, getRootFile()) && snippetsSkipFilter.accept(file); }
[ 39, 55 ]
@Override public @NotNull FileFilter createFileFilter()
509
public final class FilteredResourceRootDescriptor extends ResourceRootDescriptor
[ "@Override\n public @NotNull FileFilter createFileFilter()" ]
intellij-community/jps/jps-builders/src/org/jetbrains/jps/builders/java/FilteredResourceRootDescriptor.java
3,878
writeToFile
public static void writeToFile(@NotNull File file, @NotNull String text, boolean append) throws IOException { writeToFile(file, text.getBytes(StandardCharsets.UTF_8), append); }
[ 19, 30 ]
public static void writeToFile(@NotNull File file, @NotNull String text, boolean append)
183
@ApiStatus.NonExtendable public class FileUtil
[ "@Contract(pure = true)\n public static @NotNull @NlsSafe String join(String @NotNull ... parts)", "@Contract(pure = true)\n public static @Nullable @NlsSafe String getRelativePath(File base, File file)", "@Contract(pure = true)\n public static @Nullable @NlsSafe String getRelativePath(@NotNull String basePath, @NotNull String filePath, char separator)", "@Contract(pure = true)\n public static @Nullable @NlsSafe String getRelativePath(@NotNull String basePath,\n @NotNull String filePath,\n char separator,\n boolean caseSensitive)", "public static boolean isAbsolute(@NotNull String path)", "public static boolean exists(@Nullable String path)", "public static boolean isAncestor(@NotNull File ancestor, @NotNull File file, boolean strict)", "public static boolean isAncestor(@NotNull String ancestor, @NotNull String file, boolean strict)", "public static @NotNull ThreeState isAncestorThreeState(@NotNull String ancestor, @NotNull String file, boolean strict)", "@Contract(pure = true)\n public static boolean startsWith(@NotNull String path, @NotNull String prefix)", "@Contract(pure = true)\n public static boolean startsWith(@NotNull String path, @NotNull String prefix, boolean isCaseSensitive)", "@Contract(pure = true)\n public static boolean startsWith(@NotNull String path, @NotNull String prefix, boolean isCaseSensitive, boolean strict)", "@Contract(pure = true)\n private static @NotNull ThreeState startsWith(@NotNull String path, @NotNull String prefix, boolean strict, boolean isCaseSensitive, boolean checkImmediateParent)", "@Contract(pure = true)\n public static @Nullable File findAncestor(@NotNull File f1, @NotNull File f2)", "@Contract(pure = true)\n public static @Nullable Path findAncestor(@NotNull Path path1, @NotNull Path path2)", "@Contract(pure = true)\n public static @Nullable File getParentFile(@NotNull File file)", "public static byte @NotNull [] loadFileBytes(@NotNull File file)", "@Deprecated\n public static byte @NotNull [] loadFirstAndClose(@NotNull InputStream stream, int maxLength)", "public static @NotNull String loadTextAndClose(@NotNull InputStream stream)", "public static @NotNull String loadTextAndClose(@NotNull Reader reader)", "public static char @NotNull [] adaptiveLoadText(@NotNull Reader reader)", "public static byte @NotNull [] adaptiveLoadBytes(@NotNull InputStream stream)", "public static @NotNull Future<Void> asyncDelete(@NotNull File file)", "public static @NotNull Future<Void> asyncDelete(@NotNull Collection<? extends File> files)", "private static @Nullable File renameToTempFileOrDelete(@NotNull File file)", "private static @NotNull File getTempFile(@NotNull String originalFileName, @NotNull String parent)", "public static boolean delete(@NotNull File file)", "public static void deleteRecursively(@NotNull Path file)", "public static void delete(@NotNull Path path)", "public static boolean createParentDirs(@NotNull File file)", "public static boolean createDirectory(@NotNull File path)", "public static boolean createIfDoesntExist(@NotNull File file)", "public static boolean ensureCanCreateFile(@NotNull File file)", "public static boolean createIfNotExists(@NotNull File file)", "public static void copy(@NotNull File fromFile, @NotNull File toFile)", "public static void copyContent(@NotNull File fromFile, @NotNull File toFile)", "private static void performCopy(@NotNull File _fromFile, @NotNull File _toFile, boolean syncTimestamp)", "private static OutputStream openOutputStream(Path file)", "public static void copy(@NotNull InputStream inputStream, @NotNull OutputStream outputStream)", "public static void copy(@NotNull InputStream inputStream, int maxSize, @NotNull OutputStream outputStream)", "public static void copy(@NotNull InputStream inputStream, long maxSize, @NotNull OutputStream outputStream)", "public static void copyFileOrDir(@NotNull File from, @NotNull File to)", "public static void copyFileOrDir(@NotNull File from, @NotNull File to, boolean isDir)", "public static void copyDir(@NotNull File fromDir, @NotNull File toDir)", "public static void copyDirContent(@NotNull File fromDir, @NotNull File toDir)", "public static void copyDir(@NotNull File fromDir, @NotNull File toDir, boolean copySystemFiles)", "public static void copyDir(@NotNull File fromDir, @NotNull File toDir, @Nullable FileFilter filter)", "public static void ensureExists(@NotNull File dir)", "public static @NotNull @NlsSafe String getNameWithoutExtension(@NotNull File file)", "public static @NotNull @NlsSafe String getNameWithoutExtension(@NotNull String name)", "public static @NotNull @NlsSafe String createSequentFileName(@NotNull File aParentFolder,\n @NotNull String aFilePrefix,\n @NotNull String aExtension)", "public static @NotNull @NlsSafe String createSequentFileName(@NotNull File aParentFolder,\n @NotNull String aFilePrefix,\n @NotNull String aExtension,\n @NotNull Predicate<? super File> condition)", "public static @NotNull File findSequentNonexistentFile(@NotNull File parentFolder, @NotNull @NonNls String filePrefix, @NotNull String extension)", "public static @NotNull File findSequentFile(@NotNull File parentFolder,\n @NotNull String filePrefix,\n @NotNull String extension,\n @NotNull Predicate<? super File> condition)", "public static @NotNull @NlsSafe String toSystemDependentName(@NotNull String filePath)", "public static @NotNull String toSystemDependentName(@NotNull String path, char separatorChar)", "public static @NotNull @NonNls String toSystemIndependentName(@NotNull String filePath)", "@Contract(\"null -> null; !null->!null\")\n public static String toCanonicalPath(@Nullable String path)", "public static String toCanonicalPath(@Nullable String path, char separatorChar, boolean removeLastSlash)", "@Contract(\"null, _ -> null; !null,_->!null\")\n public static String toCanonicalPath(@Nullable String path, boolean resolveSymlinksIfNecessary)", "@Contract(\"null, _ -> null; !null,_->!null\")\n public static String toCanonicalPath(@Nullable String path, char separatorChar)", "@Contract(\"null -> null; !null->!null\")\n public static String toCanonicalUriPath(@Nullable String path)", "@Override\n public @NotNull String resolveSymlinksAndCanonicalize(@NotNull String path, char separatorChar, boolean removeLastSlash)", "@Override\n public boolean isSymlink(@NotNull CharSequence path)", "@Contract(\"null, _, _, _ -> null; !null,_,_,_->!null\")\n private static String toCanonicalPath(@Nullable String path,\n char separatorChar,\n boolean removeLastSlash,\n boolean resolveSymlinks)", "public static @NotNull String normalize(@NotNull String path)", "private static @NotNull String normalizeTail(int prefixEnd, @NotNull String path, boolean separator)", "public static @NotNull @NlsSafe String unquote(@NotNull String urlString)", "public static boolean rename(@NotNull File source, @NotNull String newName)", "public static void rename(@NotNull File source, @NotNull File target)", "public static boolean filesEqual(@Nullable File file1, @Nullable File file2)", "public static boolean pathsEqual(@Nullable String path1, @Nullable String path2)", "public static boolean namesEqual(@Nullable String name1, @Nullable String name2)", "public static int compareFiles(@Nullable File file1, @Nullable File file2)", "public static int comparePaths(@Nullable String path1, @Nullable String path2)", "public static int fileHashCode(@Nullable File file)", "public static int pathHashCode(@Nullable String path)", "@Deprecated\n @ApiStatus.ScheduledForRemoval\n public static @NotNull String getExtension(@NotNull String fileName)", "public static @NotNull CharSequence getExtension(@NotNull CharSequence fileName)", "public static CharSequence getExtension(@NotNull CharSequence fileName, @Nullable String defaultValue)", "public static @NotNull @NlsSafe String resolveShortWindowsName(@NotNull String path)", "public static boolean containsWindowsShortName(@NotNull String path)", "public static @Nullable String extractRootPath(@NotNull String normalizedPath)", "public static void collectMatchedFiles(@NotNull File root, @NotNull Pattern pattern, @NotNull List<? super File> outFiles)", "private static void collectMatchedFiles(@NotNull File absoluteRoot,\n @NotNull File root,\n @NotNull Pattern pattern,\n @NotNull List<? super File> files)", "@RegExp\n public static @NotNull String convertAntToRegexp(@NotNull String antPattern)", "@RegExp\n public static @NotNull String convertAntToRegexp(@NotNull String antPattern, boolean ignoreStartingSlash)", "public static boolean moveDirWithContent(@NotNull File fromDir, @NotNull File toDir)", "public static @NotNull String sanitizeFileName(@NotNull String name)", "public static @NotNull String sanitizeFileName(@NotNull String name, boolean strict)", "public static @NotNull String sanitizeFileName(@NotNull String name, boolean strict, @NotNull String replacement)", "public static boolean canExecute(@NotNull File file)", "@Deprecated\n @ApiStatus.ScheduledForRemoval\n public static boolean canWrite(@NotNull String path)", "public static void appendToFile(@NotNull File file, @NotNull String text)", "public static void writeToFile(@NotNull File file, byte @NotNull [] content)", "public static void writeToFile(@NotNull File file, @NotNull String text)", "public static void writeToFile(@NotNull File file, @NotNull String text, @NotNull Charset charset)", "public static void writeToFile(@NotNull File file, @NotNull String text, boolean append)", "public static void writeToFile(@NotNull File file, byte @NotNull [] content, int off, int len)", "public static void writeToFile(@NotNull File file, byte @NotNull [] content, boolean append)", "private static void writeToFile(@NotNull File file, byte @NotNull [] content, int off, int len, boolean append)", "public static @NotNull JBTreeTraverser<File> fileTraverser(@Nullable File root)", "public static boolean processFilesRecursively(@NotNull File root, @NotNull Processor<? super File> processor)", "@Deprecated\n @ApiStatus.ScheduledForRemoval\n public static boolean processFilesRecursively(@NotNull File root,\n @NotNull Processor<? super File> processor,\n @Nullable Processor<? super File> directoryFilter)", "public static @Nullable File findFirstThatExist(String @NotNull ... paths)", "public static @NotNull List<File> findFilesByMask(@NotNull Pattern pattern, @NotNull File dir)", "public static @NotNull List<File> findFilesOrDirsByMask(@NotNull Pattern pattern, @NotNull File dir)", "public static @Nullable @NlsSafe String findFileInProvidedPath(@NotNull String providedPath, @NotNull String @NotNull ... fileNames)", "@Deprecated\n public static boolean isAbsolutePlatformIndependent(@NotNull String path)", "@ApiStatus.ScheduledForRemoval\n @Deprecated\n public static boolean isUnixAbsolutePath(@NotNull String path)", "@Deprecated\n @ApiStatus.ScheduledForRemoval\n public static boolean isWindowsAbsolutePath(@NotNull String path)", "@Contract(\"null -> null; !null -> !null\")\n public static @NlsSafe String getLocationRelativeToUserHome(@Nullable String path)", "@Contract(\"null,_ -> null; !null,_ -> !null\")\n public static @NlsSafe String getLocationRelativeToUserHome(@Nullable String path, boolean unixOnly)", "@Contract(pure = true)\n public static @NotNull String expandUserHome(@NotNull String path)", "public static File @NotNull [] notNullize(File @Nullable [] files)", "public static File @NotNull [] notNullize(File @Nullable [] files, File @NotNull [] defaultFiles)", "public static boolean isHashBangLine(@Nullable CharSequence firstCharsIfText, @NotNull String marker)", "public static @NotNull File createTempDirectory(@NotNull @NonNls String prefix, @Nullable @NonNls String suffix)", "public static @NotNull File createTempDirectory(@NotNull @NonNls String prefix, @Nullable @NonNls String suffix, boolean deleteOnExit)", "public static @NotNull File createTempDirectory(@NotNull File dir, @NotNull @NonNls String prefix, @Nullable @NonNls String suffix)", "public static @NotNull File createTempDirectory(@NotNull File dir,\n @NotNull @NonNls String prefix,\n @Nullable @NonNls String suffix,\n boolean deleteOnExit)", "public static @NotNull File createTempFile(@NotNull @NonNls String prefix, @Nullable @NonNls String suffix)", "public static @NotNull File createTempFile(@NotNull @NonNls String prefix, @Nullable @NonNls String suffix, boolean deleteOnExit)", "public static @NotNull File createTempFile(@NotNull File dir, @NotNull @NonNls String prefix, @Nullable @NonNls String suffix)", "public static @NotNull File createTempFile(@NotNull File dir,\n @NotNull @NonNls String prefix,\n @Nullable @NonNls String suffix,\n boolean create)", "public static @NotNull File createTempFile(@NotNull File dir,\n @NotNull @NonNls String prefix,\n @Nullable @NonNls String suffix,\n boolean create,\n boolean deleteOnExit)", "public static @NotNull @NlsSafe String getTempDirectory()", "@TestOnly\n public static void resetCanonicalTempPathCache(@NotNull String tempPath)", "public static @NotNull File generateRandomTemporaryPath()", "public static @NotNull File generateRandomTemporaryPath(@NotNull String prefix, @NotNull String suffix)", "public static void setExecutable(@NotNull File file)", "public static @Nullable String loadFileOrNull(@NotNull String path)", "public static @Nullable String loadFileOrNull(@NotNull File file)", "public static @NotNull String loadFile(@NotNull File file)", "public static @NotNull String loadFile(@NotNull File file, boolean convertLineSeparators)", "public static @NotNull String loadFile(@NotNull File file, @Nullable String encoding)", "public static @NotNull String loadFile(@NotNull File file, @NotNull Charset encoding)", "public static @NotNull String loadFile(@NotNull File file, @Nullable String encoding, boolean convertLineSeparators)", "public static char @NotNull [] loadFileText(@NotNull File file)", "public static char @NotNull [] loadFileText(@NotNull File file, @NotNull Charset encoding)", "public static char[] loadFileText(@NotNull File file, @Nullable String encoding)", "public static char @NotNull [] loadText(@NotNull Reader reader, int length)", "public static @NotNull List<String> loadLines(@NotNull File file)", "public static @NotNull List<String> loadLines(@NotNull File file, @Nullable String encoding)", "public static @NotNull List<String> loadLines(@NotNull String path)", "public static @NotNull List<String> loadLines(@NotNull String path, @Nullable String encoding)", "public static @NotNull List<String> loadLines(@NotNull BufferedReader reader)", "public static byte @NotNull [] loadBytes(@NotNull InputStream stream)", "public static byte @NotNull [] loadBytes(@NotNull InputStream stream, int length)", "public static @NotNull List<String> splitPath(@NotNull String path)", "public static @NotNull List<String> splitPath(@NotNull String path, char separatorChar)", "public static boolean visitFiles(@NotNull File root, @NotNull Processor<? super File> processor)", "public static boolean deleteWithRenamingIfExists(@NotNull Path file)", "public static boolean deleteWithRenaming(@NotNull Path file)", "public static boolean deleteWithRenaming(@NotNull File file)", "public static @NotNull String getUrl(@NotNull File file)", "public static @NotNull URI fileToUri(@NotNull File file)", "public static boolean extensionEquals(@NotNull @NonNls String filePath, @NotNull @NonNls String extension)", "@SuppressWarnings(\"unused\")\n public static boolean isJarOrZip(@NotNull File file)", "@Override\n public int computeHashCode(File object)", "@Override\n public boolean equals(File o1, File o2)" ]
intellij-community/platform/util/src/com/intellij/openapi/util/io/FileUtil.java
210,881
hasExplicitModifier
@Override public boolean hasExplicitModifier(final @NotNull String name) { for (PsiModifierList sublist : mySublists) { if (sublist.hasExplicitModifier(name)) return true; } return false; }
[ 27, 46 ]
@Override public boolean hasExplicitModifier(final @NotNull String name)
211
public class PsiCompositeModifierList extends LightModifierList
[ "@Override\n public PsiAnnotation @NotNull [] getAnnotations()", "@Override\n public PsiAnnotation findAnnotation(final @NotNull String qualifiedName)", "@Override\n public boolean hasModifierProperty(final @NotNull String name)", "@Override\n public boolean hasExplicitModifier(final @NotNull String name)" ]
intellij-community/java/java-psi-impl/src/com/intellij/psi/impl/source/tree/java/PsiCompositeModifierList.java
448,127
createTemplateData
@Nullable static List<EventPair<?>> createTemplateData(@NotNull TemplateImpl template, @NotNull Language language) { Triple<String, String, PluginInfo> keyGroupPluginToLog = getKeyGroupPluginToLog(template); if (keyGroupPluginToLog == null) { return null; } List<EventPair<?>> data = new ArrayList<>(); data.add(EventFields.Language.with(language)); data.add(TEMPLATE_GROUP.with(keyGroupPluginToLog.getSecond())); PluginInfo plugin = keyGroupPluginToLog.getThird(); if (plugin != null) { data.add(EventFields.PluginInfo.with(plugin)); } data.add(KEY.with(keyGroupPluginToLog.getFirst())); data.add(CHANGED_BY_USER.with(TemplateSettings.getInstance().differsFromDefault(template))); return data; }
[ 38, 56 ]
@Nullable static List<EventPair<?>> createTemplateData(@NotNull TemplateImpl template, @NotNull Language language)
761
final class LiveTemplateRunLogger extends CounterUsagesCollector
[ "@Override\n public EventLogGroup getGroup()", "public static VarargEventId registerLiveTemplateEvent(EventLogGroup group, String event)", "static void log(@NotNull Project project, @NotNull TemplateImpl template, @NotNull Language language)", "@Nullable\n static Triple<String, String, PluginInfo> getKeyGroupPluginToLog(@NotNull TemplateImpl template)", "@Nullable\n static List<EventPair<?>> createTemplateData(@NotNull TemplateImpl template, @NotNull Language language)", "private static boolean isCreatedProgrammatically(String key, String groupName)", "@NotNull\n @Override\n public String getRuleId()", "@Override\n public boolean acceptRuleId(@Nullable String ruleId)", "@NotNull\n @Override\n protected ValidationResultType doValidate(@NotNull String data, @NotNull EventContext context)", "@NotNull\n public static ValidationResultType validateKeyGroup(String key, Object group)", "private static boolean isKeyOrGroup(@NotNull String data, @NotNull String key, @NotNull String group)" ]
intellij-community/platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateRunLogger.java
285,598
getInstance
public static FileBasedIndex getInstance() { return ApplicationManager.getApplication().getService(FileBasedIndex.class); }
[ 29, 40 ]
public static FileBasedIndex getInstance()
129
@NonExtendable public abstract class FileBasedIndex
[ "public abstract void iterateIndexableFiles(@NotNull ContentIterator processor, @NotNull Project project, @Nullable ProgressIndicator indicator)", "@Nullable\n public abstract VirtualFile getFileBeingCurrentlyIndexed()", "@Internal\n @Nullable\n public abstract IndexWritingFile getFileWritingCurrentlyIndexes()", "@Internal\n public void registerProjectFileSets(@NotNull Project project)", "@Internal\n public void onProjectClosing(@NotNull Project project)", "@Internal\n @Nullable\n public DumbModeAccessType getCurrentDumbModeAccessType()", "@Internal\n public <T> @NotNull Processor<? super T> inheritCurrentDumbAccessType(@NotNull Processor<? super T> processor)", "public static FileBasedIndex getInstance()", "public static int getFileId(@NotNull final VirtualFile file)", "@Deprecated(forRemoval = true)\n public abstract VirtualFile findFileById(Project project, int id)", "public void requestRebuild(@NotNull ID<?, ?> indexId)", "@NotNull\n public abstract <K, V> List<V> getValues(@NotNull ID<K, V> indexId, @NotNull K dataKey, @NotNull GlobalSearchScope filter)", "@NotNull\n public abstract <K, V> Collection<VirtualFile> getContainingFiles(@NotNull ID<K, V> indexId,\n @NotNull K dataKey,\n @NotNull GlobalSearchScope filter)", "@ApiStatus.Experimental\n @NotNull\n public abstract <K, V> Iterator<VirtualFile> getContainingFilesIterator(@NotNull ID<K, V> indexId,\n @NotNull K dataKey,\n @NotNull GlobalSearchScope filter)", "public abstract <K, V> boolean processValues(@NotNull ID<K, V> indexId,\n @NotNull K dataKey,\n @Nullable VirtualFile inFile,\n @NotNull ValueProcessor<? super V> processor,\n @NotNull GlobalSearchScope filter)", "public <K, V> boolean processValues(@NotNull ID<K, V> indexId,\n @NotNull K dataKey,\n @Nullable VirtualFile inFile,\n @NotNull ValueProcessor<? super V> processor,\n @NotNull GlobalSearchScope filter,\n @Nullable IdFilter idFilter)", "public abstract <K, V> long getIndexModificationStamp(@NotNull ID<K, V> indexId, @NotNull Project project)", "public abstract <K, V> boolean processFilesContainingAllKeys(@NotNull ID<K, V> indexId,\n @NotNull Collection<? extends K> dataKeys,\n @NotNull GlobalSearchScope filter,\n @Nullable Condition<? super V> valueChecker,\n @NotNull Processor<? super VirtualFile> processor)", "public abstract <K, V> boolean processFilesContainingAnyKey(@NotNull ID<K, V> indexId,\n @NotNull Collection<? extends K> dataKeys,\n @NotNull GlobalSearchScope filter,\n @Nullable IdFilter idFilter,\n @Nullable Condition<? super V> valueChecker,\n @NotNull Processor<? super VirtualFile> processor)", "@NotNull\n public abstract <K> Collection<K> getAllKeys(@NotNull ID<K, ?> indexId, @NotNull Project project)", "@Internal\n public abstract <K> void ensureUpToDate(@NotNull ID<K, ?> indexId, @Nullable Project project, @Nullable GlobalSearchScope filter)", "public abstract void requestRebuild(@NotNull ID<?, ?> indexId, @NotNull Throwable throwable)", "@Deprecated\n public abstract <K> void scheduleRebuild(@NotNull ID<K, ?> indexId, @NotNull Throwable e)", "public abstract void requestReindex(@NotNull VirtualFile file)", "public abstract <K, V> boolean getFilesWithKey(@NotNull ID<K, V> indexId,\n @NotNull Set<? extends K> dataKeys,\n @NotNull Processor<? super VirtualFile> processor,\n @NotNull GlobalSearchScope filter)", "@ApiStatus.Experimental\n public void ignoreDumbMode(@NotNull DumbModeAccessType dumbModeAccessType, @NotNull Runnable command)", "@ApiStatus.Experimental\n public <T, E extends Throwable> T ignoreDumbMode(@NotNull DumbModeAccessType dumbModeAccessType,\n @NotNull ThrowableComputable<T, E> computable)", "public abstract <K> boolean processAllKeys(@NotNull ID<K, ?> indexId, @NotNull Processor<? super K> processor, @Nullable Project project)", "public <K> boolean processAllKeys(@NotNull ID<K, ?> indexId, @NotNull Processor<? super K> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter idFilter)", "@NotNull\n public abstract <K, V> Map<K, V> getFileData(@NotNull ID<K, V> id, @NotNull VirtualFile virtualFile, @NotNull Project project)", "public abstract <V> @Nullable V getSingleEntryIndexData(@NotNull ID<Integer, V> id,\n @NotNull VirtualFile virtualFile,\n @NotNull Project project)", "public static void iterateRecursively(@NotNull final VirtualFile root,\n @NotNull final ContentIterator processor,\n @Nullable final ProgressIndicator indicator,\n @Nullable final Set<? super VirtualFile> visitedRoots,\n @Nullable final ProjectFileIndex projectFileIndex)", "public void invalidateCaches()", "@NotNull\n public ID<K, V> getIndexId()", "@NotNull\n public Collection<? extends K> getDataKeys()", "@Nullable\n public Condition<? super V> getValueChecker()", "@ApiStatus.Experimental\n public boolean processFilesContainingAllKeys(@NotNull Collection<? extends AllKeysQuery<?, ?>> queries,\n @NotNull GlobalSearchScope filter,\n @NotNull Processor<? super VirtualFile> processor)", "boolean process(@NotNull VirtualFile file, V value)", "boolean acceptInput(@NotNull VirtualFile file)", "@Override\n default boolean acceptInput(@NotNull VirtualFile file)", "boolean acceptInput(@NotNull IndexedFile file)", "void registerFileTypesUsedForIndexing(@NotNull Consumer<? super FileType> fileTypeSink)", "@Deprecated(forRemoval = true)\n @Internal\n public static boolean isIndexAccessDuringDumbModeEnabled()", "@Internal\n public static boolean isCompositeIndexer(@NotNull DataIndexer<?, ?, ?> indexer)", "@Internal\n public void loadIndexes()", "public @Nullable PluginId getRequestorPluginId()" ]
intellij-community/platform/indexing-api/src/com/intellij/util/indexing/FileBasedIndex.java
240,737
hashCode
@Override public int hashCode() { int result = groupId != null ? groupId.hashCode() : 0; result = 31 * result + (artifactId != null ? artifactId.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); result = 31 * result + (packaging != null ? packaging.hashCode() : 0); result = 31 * result + (description != null ? description.hashCode() : 0); return result; }
[ 23, 31 ]
@Override public int hashCode()
419
public class IndexedMavenId implements Serializable
[ "@Override\n public boolean equals(Object o)", "@Override\n public int hashCode()" ]
intellij-community/plugins/maven-server-api/src/main/java/org/jetbrains/idea/maven/server/IndexedMavenId.java
35,852
layoutContainer
@Override public void layoutContainer(Container target) { Insets insets = target.getInsets(); int width = target.getWidth() - insets.left - insets.right; Component[] components = target.getComponents(); int y = -myShift + insets.top; for (Component component : components) { if (!component.isVisible()) { String place = target instanceof PlaceProvider ? ((PlaceProvider)target).getPlace() : null; String itemText = component instanceof AbstractButton ? "\"" + ((AbstractButton)component).getText() + "\"" : component.getClass().getName(); LOG.error("Invisible menu item " + itemText + (place != null ? " in '" + place + "'" : "") + " (" + component.getClass().getName() + " in " + target.getClass().getName() + ")"); continue; } int height = component.getPreferredSize().height; component.setBounds(insets.left, y, width, height); y += height; } }
[ 26, 41 ]
@Override public void layoutContainer(Container target)
1,020
public class JBPopupMenu extends JPopupMenu
[ "@Override\n public void processMouseWheelEvent(MouseWheelEvent e)", "@Override\n public void setLayout(LayoutManager mgr)", "@Override\n public void paint(Graphics g)", "public static void showAbove(@NotNull Component component, @NotNull JPopupMenu menu)", "public static void showAtRight(@NotNull Component component, @NotNull JPopupMenu menu)", "public static void showBelow(@NotNull Component component, @NotNull JPopupMenu menu)", "public static void showBelow(@NotNull Component component, @NonNls @NotNull String place, @NotNull ActionGroup group)", "public static void showByEvent(@NotNull MouseEvent event, @NotNull JPopupMenu menu)", "public static void showByEditor(@NotNull Editor editor, @NotNull JPopupMenu menu)", "public static void showByEvent(@NotNull MouseEvent event, @NonNls @NotNull String place, @NotNull ActionGroup group)", "public static void showAt(@NotNull RelativePoint point, @NotNull JPopupMenu menu)", "@Override\n public void popupMenuWillBecomeVisible(PopupMenuEvent e)", "@Override\n public void popupMenuWillBecomeInvisible(PopupMenuEvent e)", "@Override\n public void popupMenuCanceled(PopupMenuEvent e)", "private void switchTimer(boolean on)", "@Override\n public void actionPerformed(ActionEvent e)", "private void updateShift(int increment)", "public void paintIfNeeded(Graphics g)", "@Override\n public void layoutContainer(Container target)", "private int getMaxHeight()", "@Override\n public @NotNull Dimension preferredLayoutSize(Container target)" ]
intellij-community/platform/platform-api/src/com/intellij/openapi/ui/JBPopupMenu.java
230,895
getName
@NotNull @Override public String getName() { return GroovyBundle.message("add.to.resources"); }
[ 41, 48 ]
@NotNull @Override public String getName()
113
public final class TypeCustomizerInspection extends BaseInspection
[ "@NotNull\n @Override\n protected BaseInspectionVisitor buildVisitor()", "public static boolean fileSeemsToBeTypeCustomizer(@NotNull final PsiFile file)", "private static boolean isCustomizerEvent(@Nullable String name)", "@NotNull\n @Override\n public String getName()", "@Override\n public boolean startInWriteAction()", "@NotNull\n @Override\n public String getFamilyName()", "@Override\n public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor)" ]
intellij-community/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/resources/TypeCustomizerInspection.java
64,783
getID
@Override @NotNull public String getID() { return "CallToSystemRunFinalizersOnExit"; }
[ 37, 42 ]
@Override @NotNull public String getID()
96
public final class SystemRunFinalizersOnExitInspection extends BaseInspection
[ "@Override\n @NotNull\n public String getID()", "@Override\n @NotNull\n protected String buildErrorString(Object... infos)", "@Override\n public boolean shouldInspect(@NotNull PsiFile file)", "@Override\n public BaseInspectionVisitor buildVisitor()", "@Override\n public void visitMethodCallExpression(@NotNull PsiMethodCallExpression call)" ]
intellij-community/java/java-analysis-impl/src/com/siyeh/ig/threading/SystemRunFinalizersOnExitInspection.java
462,549