PsiJavaFileStub (@NotNull VirtualFile file, byte @NotNull [] content) { try { PsiJavaFileStub root = new PsiJavaFileStubImpl("", true); new ClassReader(content).accept(new GrTraitMethodVisitor(file, root), EMPTY_ATTRIBUTES, ClassReader.SKIP_CODE); new StubTree(root); // to ensure stubs are stored in DFS order return root; } catch (OutOfOrderInnerClassException e) { if (LOG.isTraceEnabled()) LOG.trace(file.getPath()); return null; } catch (Exception e) { LOG.info(file.getPath(), e); return null; } }