final SortedBugCollection bugs = RunFindbugs.getBugs(allClassFileNames(pckg.getProject())); SwingUtilities.invokeLater(new Runnable()
for (BPackage bp : bluej.getCurrentPackage().getProject().getPackages()) for (BClass bc : bp.getClasses()) if (!bc.isCompiled()) notCompiled.add(bc);  if (notCompiled.size() > 0)
	public JMenuItem getToolsMenuItem(final BPackage pckg)	{		JMenuItem jmi = new JMenuItem(new AbstractAction()		{			public void actionPerformed(ActionEvent evt)			{								new Thread(new Runnable()				{					public void run()					{						try						{							final SortedBugCollection bugs = RunFindbugs.getBugs(allClassFileNames(pckg.getProject()));							SwingUtilities.invokeLater(new Runnable()							{								public void run()								{									try									{										ResultsFrame.getInstance().update(bugs, pckg.getProject());									}									catch (Exception e)									{										Log.recordBug(e);									}								}							});						}						catch (Exception e)						{							Log.recordBug(e);						}					}				}).start();			}		});		jmi.setText("Run FindBugs");		return jmi;	}